Skip to content

Commit 1245cc0

Browse files
committed
Remove useless lambda block.
1 parent 0d62a6a commit 1245cc0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/SftpPermissionExceptionTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ public void testGetOutputStreamException() throws Exception {
7272
readOnlyFile.setWritable(false, false);
7373
// Try to copy to the read-only file - should throw exception
7474
final FileObject sourceFile = scratchFolder.resolveFile("file1.txt");
75-
assertThrows(FileSystemException.class, () -> {
76-
readOnlyFile.copyFrom(sourceFile, null);
77-
});
75+
assertThrows(FileSystemException.class, () -> readOnlyFile.copyFrom(sourceFile, null));
7876
// Clean up
7977
readOnlyFile.setWritable(true, false);
8078
readOnlyFile.delete();

0 commit comments

Comments
 (0)