Refactor: Simplify method

Change-Id: I84e88480d7b005db4585afa7f9296f8a2d7cbef3
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
index 5e02f3c..2c54438 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
@@ -291,13 +291,8 @@
     }
 
     private boolean isAllowed(ConnectPoint circuitCp, ConnectPoint connectivityCp) {
-        ConnectPoint srcStaticPort = staticPort(circuitCp);
-        if (srcStaticPort != null) {
-            if (!srcStaticPort.equals(connectivityCp)) {
-                return false;
-            }
-        }
-        return true;
+        ConnectPoint staticPort = staticPort(circuitCp);
+        return staticPort == null || staticPort.equals(connectivityCp);
     }
 
     /**