File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 22// Licensed under the MIT License.
33
44using System . Collections . Immutable ;
5+ using System . Linq ;
56using P = Microsoft . DurableTask . Protobuf ;
67
78namespace Microsoft . DurableTask . Client . Grpc ;
@@ -47,12 +48,9 @@ public static class ProtoUtils
4748 P . OrchestrationIdReusePolicy policy = new ( ) ;
4849
4950 // Add terminal statuses that are NOT in dedupeStatuses as replaceable
50- foreach ( P . OrchestrationStatus terminalStatus in terminalStatuses )
51+ foreach ( P . OrchestrationStatus terminalStatus in terminalStatuses . Where ( status => ! dedupeStatusSet . Contains ( status ) ) )
5152 {
52- if ( ! dedupeStatusSet . Contains ( terminalStatus ) )
53- {
54- policy . ReplaceableStatus . Add ( terminalStatus ) ;
55- }
53+ policy . ReplaceableStatus . Add ( terminalStatus ) ;
5654 }
5755
5856 // Only return policy if we have replaceable statuses
You can’t perform that action at this time.
0 commit comments