summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-08-26 09:14:48 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-08-26 09:14:48 +0530
commit154434875bb42f87641127b3645e2cd00d11266a (patch)
treee954f059a6df8eecbec6969a2ce24d367a10223d
parent5e4a052efe6cda1783723354eb03dcb322921c25 (diff)
downloadchef-154434875bb42f87641127b3645e2cd00d11266a.tar.gz
Use ||= instead of const_defined? check
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/knife/config_list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/config_list.rb b/lib/chef/knife/config_list.rb
index f76489a106..931ba59f93 100644
--- a/lib/chef/knife/config_list.rb
+++ b/lib/chef/knife/config_list.rb
@@ -22,7 +22,7 @@ class Chef
class ConfigList < Knife
banner "knife config list (options)"
- TABLE_HEADER = [" Profile", "Client", "Key", "Server"].freeze unless const_defined?(:TABLE_HEADER)
+ TABLE_HEADER ||= [" Profile", "Client", "Key", "Server"].freeze
deps do
require_relative "../workstation_config_loader"