Skip to content

Commit

Permalink
Fixed Performance/Casecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jul 15, 2016
1 parent 20edadf commit 33fc568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/network/src/lib/network/susefirewalld.rb
Expand Up @@ -815,7 +815,7 @@ def GetIgnoreLoggingBroadcast(_zone)
# // Do not log broadcast packetes from DMZ
# SetIgnoreLoggingBroadcast ("DMZ", "yes")
def SetIgnoreLoggingBroadcast(_zone = nil, bcast)
bcast = bcast.downcase == "no" ? "broadcast" : "off"
bcast = bcast.casecmp("no").zero? ? "broadcast" : "off"

return nil if @SETTINGS["logging"] == bcast

Expand Down

0 comments on commit 33fc568

Please sign in to comment.