Skip to content

Commit eb18b3b

Browse files
committed
code style
1 parent 5e09b61 commit eb18b3b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

direct-object-references/src/test/java/de/dominikschadow/javasecurity/downloads/DownloadServiceTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ void getFileByIndirectReference_withValidReference_returnsFile() throws AccessCo
7272
void getFileByIndirectReference_withInvalidReference_throwsException() {
7373
String invalidReference = "invalid-reference-that-does-not-exist";
7474

75-
assertThrows(Exception.class, () -> {
76-
downloadService.getFileByIndirectReference(invalidReference);
77-
});
75+
assertThrows(Exception.class, () -> downloadService.getFileByIndirectReference(invalidReference));
7876
}
7977

8078
@Test

0 commit comments

Comments
 (0)