Simplify boolean expressions
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / streams / listeners / AbstractCommonSubscriber.java
index 371cf7607b12c168cffb2a7a2b87610a087cba1b..67cffe212aae075ed6be6d77fa7297e1693c2785 100644 (file)
@@ -104,7 +104,7 @@ abstract class AbstractCommonSubscriber extends AbstractQueryParams implements B
      * @return True if exist, false otherwise.
      */
     public boolean isListening() {
-        return this.registration == null ? false : true;
+        return this.registration != null;
     }
 
     /**