From c92365090f526d6c6d4c5bbded0ef322b9a08ca1 Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Fri, 4 Dec 2015 12:38:25 -0800 Subject: [PATCH] Simpler --- modules/post/windows/gather/enum_av_excluded.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/windows/gather/enum_av_excluded.rb b/modules/post/windows/gather/enum_av_excluded.rb index 54265f2151..7bdde81271 100644 --- a/modules/post/windows/gather/enum_av_excluded.rb +++ b/modules/post/windows/gather/enum_av_excluded.rb @@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post def print_exclusions_table(product, exclusion_type, exclusions) exclusions ||= [] - exclusions = exclusions.compact.reject { |e| e.blank? } + exclusions = exclusions.compact.reject(&:blank?) if exclusions.empty? print_status("No #{exclusion_type} exclusions for #{product}") return