From c844e1c87374b18ee634a06a5325518631607c90 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 12 Jan 2016 08:22:09 -0800 Subject: chefstyle: fix Lint/StringConversionInInterpolation useless use of `"#{foo.to_s}"` --- lib/chef/provider.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/chef/provider.rb') 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 -- cgit v1.2.1