diff options
author | Nathan Williams <nathan@teamtreehouse.com> | 2016-03-11 16:06:07 -0800 |
---|---|---|
committer | Nathan Williams <nathan@teamtreehouse.com> | 2016-03-11 16:06:07 -0800 |
commit | f59f66cd27c36cc4fe31c6b8197758b165784f20 (patch) | |
tree | f60d788bf6d0bcb7e25aba4e05a51dd66427e082 /lib/chef/dsl | |
parent | c7964c2ab56bc5c00e86deb01cb4be35e5d6feb3 (diff) | |
download | chef-f59f66cd27c36cc4fe31c6b8197758b165784f20.tar.gz |
rm unnecessary mutex
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/declare_resource.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/dsl/declare_resource.rb b/lib/chef/dsl/declare_resource.rb index 868c5e7ed9..e57bc0f4c4 100644 --- a/lib/chef/dsl/declare_resource.rb +++ b/lib/chef/dsl/declare_resource.rb @@ -22,7 +22,6 @@ require "chef/exceptions" class Chef module DSL module DeclareResource - BUILD_RESOURCE_SEMAPHORE = Mutex.new # # Instantiates a resource (via #build_resource), then adds it to the @@ -89,9 +88,7 @@ class Chef # def build_resource(type, name, created_at = nil, run_context: self.run_context, &resource_attrs_block) created_at ||= caller[0] - BUILD_RESOURCE_SEMAPHORE.synchronize do - require "chef/resource_builder" unless defined?(Chef::ResourceBuilder) - end + require "chef/resource_builder" unless defined?(Chef::ResourceBuilder) Chef::ResourceBuilder.new( type: type, |