Skip to content

Commit 14e458a

Browse files
.
1 parent 9fbe91a commit 14e458a

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/edu/ie3/datamodel/utils

1 file changed

+1
-2
lines changed

src/main/java/edu/ie3/datamodel/utils/Try.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ public static <U, E extends Exception> Try<Stream<U>, FailureException> scanStre
252252
List<Try<U, E>> failures = map.get(false);
253253

254254
// Both lists should exist in map per definition of partitioningBy
255-
assert successes != null;
256-
assert failures != null;
255+
assert successes != null && failures != null;
257256

258257
if (!failures.isEmpty()) {
259258
E first = failures.get(0).exception;

0 commit comments

Comments
 (0)