Skip to content

Commit 6cf2c64

Browse files
author
Lewis Headden
committed
Simplify BaseExponent#equals
1 parent cd4108d commit 6cf2c64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kubernetes/src/main/java/io/kubernetes/client/custom/BaseExponent.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ public boolean equals(Object o) {
4141

4242
BaseExponent that = (BaseExponent) o;
4343

44-
if (base != that.base) return false;
45-
if (exponent != that.exponent) return false;
46-
return format == that.format;
44+
return base == that.base && exponent == that.exponent && format == that.format;
4745
}
4846

4947
@Override

0 commit comments

Comments
 (0)