diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:13:44 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | 76427185b3dddfc9901dc2cbe5f1f7a6c9af661c (patch) | |
tree | 7f2023a7a04cb4491f82c1d5493128b071e2cf71 /lib/chef/win32 | |
parent | 7a3ca23fd977ca4f894cba54f76d64a77562f012 (diff) | |
download | chef-76427185b3dddfc9901dc2cbe5f1f7a6c9af661c.tar.gz |
fix Style/NilComparison
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/win32')
-rw-r--r-- | lib/chef/win32/security.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/win32/security.rb b/lib/chef/win32/security.rb index 7fc3215786..8bf2bfa762 100644 --- a/lib/chef/win32/security.rb +++ b/lib/chef/win32/security.rb @@ -551,7 +551,7 @@ class Chef def set_security_descriptor_dacl(security_descriptor, acl, defaulted = false, present = nil) security_descriptor = security_descriptor.pointer if security_descriptor.respond_to?(:pointer) acl = acl.pointer if acl.respond_to?(:pointer) - present = !security_descriptor.null? if present == nil + present = !security_descriptor.null? if present.nil? unless SetSecurityDescriptorDacl(security_descriptor, present, acl, defaulted) Chef::ReservedNames::Win32::Error.raise! @@ -579,7 +579,7 @@ class Chef def self.set_security_descriptor_sacl(security_descriptor, acl, defaulted = false, present = nil) security_descriptor = security_descriptor.pointer if security_descriptor.respond_to?(:pointer) acl = acl.pointer if acl.respond_to?(:pointer) - present = !security_descriptor.null? if present == nil + present = !security_descriptor.null? if present.nil? unless SetSecurityDescriptorSacl(security_descriptor, present, acl, defaulted) Chef::ReservedNames::Win32::Error.raise! |