diff options
author | John Snow <thelunaticscripter@outlook.com> | 2017-06-07 22:00:30 -0500 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-03-22 11:10:49 +0000 |
commit | fd5892d508845cb5388b87fd2e975f594aaa7d45 (patch) | |
tree | 13379a214f384274f5255ee808373fc3de422a90 | |
parent | 2871753e372d9dab4fa58d8989e6a7a4f3dfc05f (diff) | |
download | chef-fd5892d508845cb5388b87fd2e975f594aaa7d45.tar.gz |
Fix incorrectly written unless statement
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
-rw-r--r-- | lib/chef/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb index 0d221ec878..974b80423c 100644 --- a/lib/chef/application.rb +++ b/lib/chef/application.rb @@ -360,7 +360,7 @@ class Chef def debug_stacktrace(e) message = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}" - unless (e.message =~ /suppressed for sensitive resource/) + unless e.message =~ /suppressed for sensitive resource/ cause = e.cause if e.respond_to?(:cause) until cause.nil? message << "\n\n>>>> Caused by #{cause.class}: #{cause}\n#{cause.backtrace.join("\n")}" |