Skip to content

Commit dac5b07

Browse files
committed
Minor fixes for format and style
This commit contains a few minor tweaks for style and format. Some whitespace removed, an erroneous 'return' removed, and using single quotes for consistency. Updated as per request.
1 parent 16eab48 commit dac5b07

File tree

1 file changed

+2
-3
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,6 @@ def cmd_db_nmap(*args)
15941594
print_status("Usage: db_nmap [nmap options]")
15951595
return
15961596
end
1597-
15981597
save = false
15991598
arguments = ''
16001599
while (arg = args.shift)
@@ -1637,7 +1636,7 @@ def cmd_db_nmap(*args)
16371636
end
16381637

16391638
begin
1640-
nmap_pipe = ::Open3::popen3([nmap, "nmap"], arguments)
1639+
nmap_pipe = ::Open3::popen3([nmap, 'nmap'], arguments)
16411640
temp_nmap_threads = []
16421641
temp_nmap_threads << framework.threads.spawn("db_nmap-Stdout", false, nmap_pipe[1]) do |np_1|
16431642
np_1.each_line do |nmap_out|
@@ -1706,7 +1705,7 @@ def cmd_db_nmap_tabs(str, words)
17061705
print_error(err_line.strip)
17071706
end
17081707

1709-
return tabs
1708+
tabs
17101709
end
17111710

17121711
#

0 commit comments

Comments
 (0)