From 5d3885ad2704e614cf74cb0baefaf2241fe8687a Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 12 Aug 2016 11:19:55 -0700 Subject: fix some Style/ExtraSpacing that crept into this patch Signed-off-by: Lamont Granquist --- lib/chef/shell/ext.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/shell/ext.rb') diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb index eab1d13e4d..0c10309521 100644 --- a/lib/chef/shell/ext.rb +++ b/lib/chef/shell/ext.rb @@ -39,13 +39,13 @@ module Shell # irb breaks if you prematurely define IRB::JobMangager # so these methods need to be defined at the latest possible time. unless jobs.respond_to?(:select_session_by_context) - def jobs.select_session_by_context(&block) # rubocop:disable Lint/NestedMethodDefinition + def jobs.select_session_by_context(&block) # rubocop:disable Lint/NestedMethodDefinition @jobs.select { |job| block.call(job[1].context.main) } end end unless jobs.respond_to?(:session_select) - def jobs.select_shell_session(target_context) # rubocop:disable Lint/NestedMethodDefinition + def jobs.select_shell_session(target_context) # rubocop:disable Lint/NestedMethodDefinition session = if target_context.kind_of?(Class) select_session_by_context { |main| main.kind_of?(target_context) } else -- cgit v1.2.1