Skip to content

Commit 0a15f76

Browse files
authored
remove unreachable code (#176)
1 parent 285ca39 commit 0a15f76

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/io/iworkflow/core/UnregisteredClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ public <T> T getSimpleWorkflowResultWithWait(
197197
}
198198

199199
String checkErrorMessage = "this workflow should have one or zero state output for using this API";
200-
Preconditions.checkNotNull(workflowGetResponse.getResults(), checkErrorMessage);
201200
final List<StateCompletionOutput> filteredResults = workflowGetResponse.getResults().stream().filter((res) -> res.getCompletedStateOutput() != null).collect(Collectors.toList());
202-
203201
Preconditions.checkArgument(workflowGetResponse.getResults().size() == 1 || filteredResults.size() == 1, checkErrorMessage + ", found " + workflowGetResponse.getResults().size() + ", after filtered NULL: " + filteredResults.size());
204202

205203
final StateCompletionOutput output;

0 commit comments

Comments
 (0)