Committed by
Thomas Vachuska
Refactor: Split into two if statements
Change-Id: If9217fea0629f2d1e06db8310722b9d008e59d98
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -329,7 +329,11 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu | ... | @@ -329,7 +329,11 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu |
| 329 | continue; | 329 | continue; |
| 330 | } | 330 | } |
| 331 | 331 | ||
| 332 | - if (!(isAllowed(src, connIntent.getSrc()) && isAllowed(dst, connIntent.getDst()))) { | 332 | + if (!isAllowed(src, connIntent.getSrc())) { |
| 333 | + continue; | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + if (!isAllowed(dst, connIntent.getDst())) { | ||
| 333 | continue; | 337 | continue; |
| 334 | } | 338 | } |
| 335 | 339 | ... | ... |
-
Please register or login to post a comment