summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2019-04-12 12:32:22 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2019-04-24 13:27:57 -0400
commit1c476bc8818f8c4cf89cd4118b89c645184ff301 (patch)
treecaf1e9d8c33e68dcaa2ac93a18c2104c483d8ae6 /lib
parent5c0f7dd775d060c2d9f827ff68be3f2ecbea8b3d (diff)
downloadchef-1c476bc8818f8c4cf89cd4118b89c645184ff301.tar.gz
Remove unnecessary conditional
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/knife.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index b1f85386be..e5df72259d 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -351,7 +351,7 @@ class Chef
end
if Chef::Config[:knife].key?(key)
@key_sources[:config] << key
- memo[key] = Chef::Config[:knife][key] if Chef::Config[:knife].key?(key)
+ memo[key] = Chef::Config[:knife][key]
end
end
end