Skip to content

Commit f4eeee4

Browse files
authored
chore: cleaning up equality checks (#37)
related: #35
1 parent adc6ba2 commit f4eeee4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/src/main/java/io/cloudquery/types/InetType.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public String extensionName() {
2020

2121
@Override
2222
public boolean extensionEquals(ExtensionType other) {
23-
if (!(other instanceof InetType))
24-
return false;
25-
return true;
23+
return other instanceof InetType;
2624
}
2725

2826
@Override

lib/src/main/java/io/cloudquery/types/JSONType.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public int hashCode() {
4646

4747
@Override
4848
public boolean equals(Object obj) {
49-
if (!(obj instanceof JSONType)) {
50-
return false;
51-
}
52-
return true;
49+
return obj instanceof JSONType;
5350
}
5451
}

0 commit comments

Comments
 (0)