diff --git a/discovery/src/main/java/com/facebook/airlift/discovery/client/ServiceTypeImpl.java b/discovery/src/main/java/com/facebook/airlift/discovery/client/ServiceTypeImpl.java index 836c48d0ab..9333884b2f 100644 --- a/discovery/src/main/java/com/facebook/airlift/discovery/client/ServiceTypeImpl.java +++ b/discovery/src/main/java/com/facebook/airlift/discovery/client/ServiceTypeImpl.java @@ -52,11 +52,7 @@ public boolean equals(Object o) ServiceType that = (ServiceType) o; - if (!value.equals(that.value())) { - return false; - } - - return true; + return value.equals(that.value()); } @Override