Skip to content

Commit

Permalink
(yegor256#1220) Use iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Sep 4, 2020
1 parent 7734ec0 commit a6239a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/iterable/Matched.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.List;
import org.cactoos.BiFunc;
import org.cactoos.Scalar;
import org.cactoos.list.Immutable;
import org.cactoos.iterator.Immutable;
import org.cactoos.scalar.Unchecked;
import org.cactoos.text.FormattedText;

Expand Down Expand Up @@ -92,7 +92,7 @@ public Matched(
);
}
}
return new Immutable<>(rslt).iterator();
return new Immutable<>(rslt.iterator());
}
);
}
Expand Down

0 comments on commit a6239a3

Please sign in to comment.