diff options
Diffstat (limited to 'lib/chef/http/authenticator.rb')
-rw-r--r-- | lib/chef/http/authenticator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb index 970c19cd62..b5e28cf54d 100644 --- a/lib/chef/http/authenticator.rb +++ b/lib/chef/http/authenticator.rb @@ -73,9 +73,9 @@ class Chef end def load_signing_key(key_file, raw_key = nil) - if (!!key_file) + if !!key_file @raw_key = IO.read(key_file).strip - elsif (!!raw_key) + elsif !!raw_key @raw_key = raw_key.strip else return nil |