Skip to content

Commit 46067dd

Browse files
committed
refactor: remove wf Exists debug condition
1 parent 8c65784 commit 46067dd

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/Dtmworkflow/WorkflowGlobalTransaction.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ public async Task ExecuteByQS(Microsoft.AspNetCore.Http.IQueryCollection query,
6262
}
6363
#endif
6464

65-
#if DEBUG // for sample only
6665
public bool Exists(string name)
6766
{
6867
return this._handlers.ContainsKey(name);
6968
}
70-
#endif
7169
}
7270
}

tests/Dtmworkflow.Tests/WorkflowGlobalTransactionTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Dtmworkflow.Tests;
77

88
public class WorkflowGlobalTransactionTest
99
{
10-
#if DEBUG
1110
[Fact]
1211
public void Exists()
1312
{
@@ -34,5 +33,4 @@ public void Exists()
3433
Assert.False(wf2.Exists("my-wf2"));
3534
Assert.False(wf2.Exists("my-wf3"));
3635
}
37-
#endif
3836
}

0 commit comments

Comments
 (0)