diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 08:22:09 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 08:22:09 -0800 |
commit | c844e1c87374b18ee634a06a5325518631607c90 (patch) | |
tree | 59526dce9d78c30e40282e595d914cf703858663 /lib/chef/provider.rb | |
parent | 0944320b72ee1ab16a18a149f5ecb743ace0c0d3 (diff) | |
download | chef-c844e1c87374b18ee634a06a5325518631607c90.tar.gz |
chefstyle: fix Lint/StringConversionInInterpolation
useless use of `"#{foo.to_s}"`
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r-- | lib/chef/provider.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 68bc8d78bd..c53f4a6991 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -94,7 +94,7 @@ class Chef end def load_current_resource - raise Chef::Exceptions::Override, "You must override load_current_resource in #{self.to_s}" + raise Chef::Exceptions::Override, "You must override load_current_resource in #{self}" end def define_resource_requirements @@ -104,7 +104,7 @@ class Chef end def action_nothing - Chef::Log.debug("Doing nothing for #{@new_resource.to_s}") + Chef::Log.debug("Doing nothing for #{@new_resource}") true end @@ -209,7 +209,7 @@ class Chef else specified_properties.map { |p| "#{p}=#{new_resource.send(p).inspect}" }.join(", ") end - Chef::Log.debug("Skipping update of #{new_resource.to_s}: has not changed any of the specified properties #{properties_str}.") + Chef::Log.debug("Skipping update of #{new_resource}: has not changed any of the specified properties #{properties_str}.") return false end |