summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Stastny <milan@stastnej.ch>2021-01-27 00:49:14 +0100
committerMilan Stastny <milan@stastnej.ch>2021-01-27 00:49:14 +0100
commit92fe2761ced132ae59e4bd05131765f0ba891d37 (patch)
treee2fcdf5c35b1521ae98d5e001429b7f4e80bcea7
parentec99408a1db7553bf1739fd80f8e21faf7a5f27c (diff)
downloadchef-92fe2761ced132ae59e4bd05131765f0ba891d37.tar.gz
Fix StringLiterals
Signed-off-by: Milan Stastny <mistastn@cisco.com>
-rw-r--r--lib/chef/compliance/reporter/cli.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/compliance/reporter/cli.rb b/lib/chef/compliance/reporter/cli.rb
index 126c70e752..5f1f9be01f 100644
--- a/lib/chef/compliance/reporter/cli.rb
+++ b/lib/chef/compliance/reporter/cli.rb
@@ -27,7 +27,7 @@ class Chef
def format_result(result)
output = []
found = false
- if result[:status] == 'failed'
+ if result[:status] == "failed"
if result[:code_desc]
found = true
output << " \033[31m\xE2\x9D\x8C #{result[:code_desc]}\033[0m"
@@ -41,7 +41,7 @@ class Chef
prefix = "\xE2\x9D\x8C"
result[:message].split(/\n/).reject(&:empty?).each do |m|
output << " \033[31m#{prefix}#{m}\033[0m"
- prefix = ''
+ prefix = ""
end
end
found = true