Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Mar 4, 2019
1 parent 696117f commit 8db06fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/IscsiClientLib.rb
Expand Up @@ -479,14 +479,14 @@ def ScanDiscovered(data)
Builtins.foreach(data) do |row|
row = Builtins.substring(row, Builtins.findfirstnotof(row, "\t "), 999)
if Builtins.search(row, "Target:") != nil
if (! dumped)
if !dumped
# don't add Scope:Link IPv6 address
if !portal.start_with?("[fe80:")
ret = ret << "#{portal} #{target} #{iface}"
end
end
end
target = Ops.get(Builtins.splitstring(row, " "), 1, "")
dumped = false
dumped = false
elsif Builtins.search(row, "Portal:") != nil
if Builtins.search(row, "Current Portal:") != nil
portal = Ops.get(Builtins.splitstring(row, " "), 2, "")
Expand All @@ -504,7 +504,7 @@ def ScanDiscovered(data)
iface = Ops.get(@iface_file, iface, iface)
end
end
if (! dumped)
if !dumped
# don't add Scope:Link IPv6 address
if !portal.start_with?("[fe80:")
ret = ret << "#{portal} #{target} #{iface}"
Expand Down

0 comments on commit 8db06fb

Please sign in to comment.