mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Logical expression simplification, == true is redundant
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
3786aa0e67
commit
5626a340dd
@ -53,7 +53,7 @@ public class SetFirewallRulesCommand extends NetworkElementCommand {
|
||||
* each entry format <ip>:protocol:srcport:destport:scidr:
|
||||
* reverted entry format <ip>:reverted:0:0:0:
|
||||
*/
|
||||
if (fwTO.revoked() == true) {
|
||||
if (fwTO.revoked()) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
/* This entry is added just to make sure atleast there will one entry in the list to get the ipaddress */
|
||||
sb.append(fwTO.getSrcIp()).append(":reverted:0:0:0:");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user