Skip to content

Commit 9941097

Browse files
committed
Remove extraneous else
1 parent 6de986b commit 9941097

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,10 +2288,10 @@ def option_values_dispatch(o, str, words)
22882288
def option_values_payloads
22892289
if @cache_payloads && active_module == @previous_module
22902290
return @cache_payloads
2291-
else
2292-
@previous_module = active_module
22932291
end
22942292

2293+
@previous_module = active_module
2294+
22952295
@cache_payloads = active_module.compatible_payloads.map { |refname, payload|
22962296
refname
22972297
}

0 commit comments

Comments
 (0)