Skip to content

Commit 8a8bf57

Browse files
authored
Merge pull request #4 from ipinfo/ps/expression-lambda
Replace with expression lambda
2 parents 2862eca + 0da6750 commit 8a8bf57

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)