From 5c6ef532630f3d08325fd0e1635d2b6dd6057a31 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 19 Feb 2015 13:27:40 -0800 Subject: fix Lint/UnderscorePrefixedVariableName --- lib/chef/mixin/shell_out.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/chef/mixin/shell_out.rb') diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb index d3c14fa408..529023056d 100644 --- a/lib/chef/mixin/shell_out.rb +++ b/lib/chef/mixin/shell_out.rb @@ -76,17 +76,17 @@ class Chef def run_command_compatible_options(command_args) return command_args unless command_args.last.is_a?(Hash) - _command_args = command_args.dup - _options = _command_args.last + my_command_args = command_args.dup + my_options = my_command_args.last DEPRECATED_OPTIONS.each do |old_option, new_option| # Edge case: someone specifies :command_log_level and 'command_log_level' in the option hash - next unless value = _options.delete(old_option) || _options.delete(old_option.to_s) + next unless value = my_options.delete(old_option) || my_options.delete(old_option.to_s) deprecate_option old_option, new_option - _options[new_option] = value + my_options[new_option] = value end - return _command_args + return my_command_args end private -- cgit v1.2.1