Logical expression simplification, == true is redundant

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2015-02-25 20:55:56 +01:00
parent 3786aa0e67
commit 5626a340dd

View File

@ -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:");