From 9941097a5c06042114b2d63503a40fa5eaf9d38f Mon Sep 17 00:00:00 2001 From: William Vu Date: Fri, 29 Sep 2017 19:01:04 -0500 Subject: [PATCH] Remove extraneous else --- lib/msf/ui/console/command_dispatcher/core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index 6caba0e843..8fd394b940 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -2288,10 +2288,10 @@ class Core def option_values_payloads if @cache_payloads && active_module == @previous_module return @cache_payloads - else - @previous_module = active_module end + @previous_module = active_module + @cache_payloads = active_module.compatible_payloads.map { |refname, payload| refname }