Skip to content

Commit 0fc4d10

Browse files
committed
Fix indentation for case statements
1 parent bba8bd3 commit 0fc4d10

File tree

1 file changed

+20
-20
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+20
-20
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -415,23 +415,23 @@ def cmd_load(*args)
415415

416416
@@load_opts.parse(args) { |opt, idx, val|
417417
case opt
418-
when "-l"
419-
exts = []
420-
msf_path = MeterpreterBinaries.metasploit_data_dir
421-
gem_path = MeterpreterBinaries.local_dir
422-
[msf_path, gem_path].each do |path|
423-
::Dir.entries(path).each { |f|
424-
if (::File.file?(::File.join(path, f)) && f =~ /ext_server_(.*)\.#{client.binary_suffix}/ )
425-
exts.push($1) unless exts.include?($1)
426-
end
427-
}
428-
end
429-
print(exts.sort.join("\n") + "\n")
418+
when "-l"
419+
exts = []
420+
msf_path = MeterpreterBinaries.metasploit_data_dir
421+
gem_path = MeterpreterBinaries.local_dir
422+
[msf_path, gem_path].each do |path|
423+
::Dir.entries(path).each { |f|
424+
if (::File.file?(::File.join(path, f)) && f =~ /ext_server_(.*)\.#{client.binary_suffix}/ )
425+
exts.push($1) unless exts.include?($1)
426+
end
427+
}
428+
end
429+
print(exts.sort.join("\n") + "\n")
430430

431-
return true
432-
when "-h"
433-
cmd_load_help
434-
return true
431+
return true
432+
when "-h"
433+
cmd_load_help
434+
return true
435435
end
436436
}
437437

@@ -736,10 +736,10 @@ def cmd_write(*args)
736736

737737
@@write_opts.parse(args) { |opt, idx, val|
738738
case opt
739-
when "-f"
740-
src_file = val
741-
else
742-
cid = val.to_i
739+
when "-f"
740+
src_file = val
741+
else
742+
cid = val.to_i
743743
end
744744
}
745745

0 commit comments

Comments
 (0)