Cleanup sonar-reported code smells
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / base / BaseBestPath.java
index 0306dcf5d2e1eb3ce12c99eee3de41e239c85e81..9837d1c070dd3de17f465cb3e3bc2de8a82280f3 100644 (file)
@@ -57,12 +57,6 @@ final class BaseBestPath extends AbstractBestPath {
             return false;
         }
         final BaseBestPath other = (BaseBestPath) obj;
-        if (!this.routerId.equals(other.routerId)) {
-            return false;
-        }
-        if (!this.state.equals(other.state)) {
-            return false;
-        }
-        return true;
+        return this.routerId.equals(other.routerId) && this.state.equals(other.state);
     }
 }