Skip to content

Commit e24dcb1

Browse files
committed
Reduce source code noise
1 parent a93b30c commit e24dcb1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/java/org/apache/commons/io/IOUtilsTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,8 @@ public void testCloseQuietly_AllCloseableIOException() {
365365

366366
@Test
367367
public void testCloseQuietly_CloseableIOException() {
368-
assertDoesNotThrow(() -> {
369-
IOUtils.closeQuietly(BrokenInputStream.INSTANCE);
370-
});
371-
assertDoesNotThrow(() -> {
372-
IOUtils.closeQuietly(BrokenOutputStream.INSTANCE);
373-
});
368+
assertDoesNotThrow(() -> IOUtils.closeQuietly(BrokenInputStream.INSTANCE));
369+
assertDoesNotThrow(() -> IOUtils.closeQuietly(BrokenOutputStream.INSTANCE));
374370
}
375371

376372
@SuppressWarnings("squid:S2699") // Suppress "Add at least one assertion to this test case"

0 commit comments

Comments
 (0)