Skip to content

Commit a3e3bbf

Browse files
committed
Remove unnecessary reference to idx
1 parent 08836a3 commit a3e3bbf

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ def cmd_route(*args)
14161416
'Netmask' => { 'MaxWidth' => 17 },
14171417
})
14181418

1419-
Rex::Socket::SwitchBoard.each.with_index { |route, idx|
1419+
Rex::Socket::SwitchBoard.each { |route|
14201420
if (route.comm.kind_of?(Msf::Session))
14211421
gw = "Session #{route.comm.sid}"
14221422
else

0 commit comments

Comments
 (0)