Skip to content

Commit

Permalink
simplify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
lxpdd committed May 1, 2020
1 parent 7584ff8 commit 0603544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/iterable/IterableOf.java
Expand Up @@ -162,7 +162,7 @@ public boolean equals(final Object other) {
final Iterable<X> compared = (Iterable<X>) other;
return new ScalarWithFallback<>(
new And(
(X value) -> new True().value(),
(X value) -> true,
new Matched<>(
this,
compared
Expand All @@ -171,7 +171,7 @@ public boolean equals(final Object other) {
new IterableOf<>(
new FallbackFrom<>(
IllegalStateException.class,
ex -> new False().value()
ex -> false
)
)
).value();
Expand Down

0 comments on commit 0603544

Please sign in to comment.