summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-10-13 09:33:44 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-13 09:33:44 -0700
commit51c6ba84a3f189398b01de10d031dec5b16d9e8c (patch)
treec2f409f0ee1867c2e64205147ec19c5b031c9ddd /lib/chef/client.rb
parent343cb04b63cbf3ecb5010b8873c241ed41806a5c (diff)
downloadchef-51c6ba84a3f189398b01de10d031dec5b16d9e8c.tar.gz
fix PR feedbacklcg/ruby-profiling
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index cc3fe4fd5c..e2d76092e2 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -897,11 +897,9 @@ class Chef
attr_reader :specific_recipes
def profiling_prereqs!
- begin
- require 'ruby-prof'
- rescue LoadError
- raise "You must have the ruby-prof gem installed in order to use --profile-ruby"
- end
+ require 'ruby-prof'
+ rescue LoadError
+ raise "You must have the ruby-prof gem installed in order to use --profile-ruby"
end
def start_profiling