From 961ff312bbe057417bee0f62593146e78bbea879 Mon Sep 17 00:00:00 2001 From: dnskr Date: Mon, 22 Apr 2024 20:38:16 +0200 Subject: [PATCH] Simplify if statement --- .../facebook/airlift/discovery/client/ServiceTypeImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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