Fix some small issues pointed by Sonar
[transportpce.git] / inventory / src / main / java / org / opendaylight / transportpce / inventory / INode121.java
index e5ba1d8334a3f1ee4bc76c57a919a5a0683bdf6b..bc185290114126cb3d59ca1fbb0bd32ab4013c84 100644 (file)
@@ -194,7 +194,7 @@ public class INode121 {
         } catch (SQLException e) {
             LOG.error("Something wrong when fetching node in DB", e);
         }
-        return nodeExists == 0 ? false : true;
+        return nodeExists != 0;
     }
 
     public void getRoadmShelves(String nodeId) throws InterruptedException, ExecutionException {