diff options
author | Tim Smith <tsmith@chef.io> | 2018-01-12 10:18:07 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-01-12 10:18:07 -0800 |
commit | e871f2a39103fe5cc73c2a31fd903d1a30c4d136 (patch) | |
tree | ae582aae010b627f73857afdb96abef4607c2bc2 | |
parent | 25123712d7db2be05b13c21b40eb8eacaa7f55dc (diff) | |
download | chef-e871f2a39103fe5cc73c2a31fd903d1a30c4d136.tar.gz |
Improve readability a tiny bit in the mixin
Per the review
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/mixin/openssl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/openssl.rb b/lib/chef/mixin/openssl.rb index 848f5a6088..e868da9ac4 100644 --- a/lib/chef/mixin/openssl.rb +++ b/lib/chef/mixin/openssl.rb @@ -35,7 +35,7 @@ class Chef # @param [Integer] number # @return [Boolean] is length valid def key_length_valid?(number) - number >= 1024 && number & (number - 1) == 0 + number >= 1024 && ( number & (number - 1) == 0 ) end # validate a dhparam file from path |