Skip to content

Commit 0da6750

Browse files
author
Petr Shevtsov
committed
Replace with expression lambda
1 parent 2862eca commit 0da6750

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/io/ipinfo/IPInfoTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ void testGoogleDNS() {
3636

3737
@Test
3838
void testASNWithoutAuth() {
39-
assertThrows(ErrorResponseException.class, () -> {
40-
ipInfo.lookupASN("AS7922");
41-
});
39+
assertThrows(ErrorResponseException.class, () -> ipInfo.lookupASN("AS7922"));
4240
}
4341
}

0 commit comments

Comments
 (0)