summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
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