summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakazuki <sakazuki@gmail.com>2014-01-12 01:00:04 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2014-09-10 14:49:29 -0700
commit14d703a020fba62fee09f94b39ebb9e6be55f72b (patch)
treea80e2b3c33f9866bc9c0e7762cc5ffcd76292819
parent8661b14aae687bf585b1ecc74ea487e42ad17321 (diff)
downloadchef-14d703a020fba62fee09f94b39ebb9e6be55f72b.tar.gz
refactering
-rw-r--r--lib/chef/provider/ifconfig.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb
index 4e1f639402..c56530369b 100644
--- a/lib/chef/provider/ifconfig.rb
+++ b/lib/chef/provider/ifconfig.rb
@@ -170,8 +170,7 @@ class Chef
end
def resource_for_config(path)
- config = Chef::Resource::File.new(path, run_context)
- config
+ Chef::Resource::File.new(path, run_context)
end
def generate_config