From 271d3e4f91e3d158c9112512ac75d0ca51fc928d Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 23 Feb 2016 10:45:15 -0800 Subject: Autofixing new Perf cops in 0.37.2 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement --- lib/chef/application/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/application/client.rb') diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index 9ec553fb8a..79cb046919 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -263,7 +263,7 @@ class Chef::Application::Client < Chef::Application option :audit_mode, :long => "--audit-mode MODE", :description => "Enable audit-mode with `enabled`. Disable audit-mode with `disabled`. Skip converge and only perform audits with `audit-only`", - :proc => lambda { |mo| mo.gsub("-", "_").to_sym } + :proc => lambda { |mo| mo.tr("-", "_").to_sym } option :minimal_ohai, :long => "--minimal-ohai", -- cgit v1.2.1