Skip to content

Commit 310c038

Browse files
committed
Partially revert 2c0b6d6
1 parent 2c0b6d6 commit 310c038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/cryptomator/cryptofs/DeleteNonEmptyCiphertextDirectoryIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private Path firstEmptyCiphertextDirectory() throws IOException {
171171
private boolean isEmptyCryptoFsDirectory(Path path) {
172172
Predicate<Path> isIgnoredFile = p -> Constants.DIR_ID_FILE.equals(p.getFileName().toString());
173173
try (Stream<Path> files = Files.list(path)) {
174-
return files.filter(isIgnoredFile.negate()).findFirst().isEmpty();
174+
return files.noneMatch(isIgnoredFile.negate());
175175
} catch (IOException e) {
176176
throw new UncheckedIOException(e);
177177
}

0 commit comments

Comments
 (0)