Committed by
Gerrit Code Review
Simplify a condition
Change-Id: Iccbe8fefec2853d24963dafe3b8a5f58217606cc
Showing
1 changed file
with
1 additions
and
5 deletions
| ... | @@ -409,11 +409,7 @@ public class OpticalPathProvisioner { | ... | @@ -409,11 +409,7 @@ public class OpticalPathProvisioner { |
| 409 | checkNotNull(link.annotations()); | 409 | checkNotNull(link.annotations()); |
| 410 | checkNotNull(link.annotations().value("optical.type")); | 410 | checkNotNull(link.annotations().value("optical.type")); |
| 411 | 411 | ||
| 412 | - if (link.annotations().value("optical.type").equals("cross-connect")) { | 412 | + return link.annotations().value("optical.type").equals("cross-connect"); |
| 413 | - return true; | ||
| 414 | - } | ||
| 415 | - | ||
| 416 | - return false; | ||
| 417 | } | 413 | } |
| 418 | 414 | ||
| 419 | } | 415 | } | ... | ... |
-
Please register or login to post a comment