summaryrefslogtreecommitdiff
path: root/lib/chef/util
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-03-21 12:17:22 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-03-21 12:17:22 -0700
commitbd7c5c0fb7dfd6005a8e5bc3944f77230069445e (patch)
tree3b9c597340deea81ecb6c2199a4987de072c4812 /lib/chef/util
parent8e9ea543502781d4e0f71a9d577f639c256171b1 (diff)
downloadchef-bd7c5c0fb7dfd6005a8e5bc3944f77230069445e.tar.gz
rubocop fixes from engine bump to 0.54.0lcg/rubocop-fixes
some cops got a little stricter. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/util')
-rw-r--r--lib/chef/util/windows/net_user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/util/windows/net_user.rb b/lib/chef/util/windows/net_user.rb
index 059a04d59a..cf8bf3615a 100644
--- a/lib/chef/util/windows/net_user.rb
+++ b/lib/chef/util/windows/net_user.rb
@@ -95,9 +95,9 @@ class Chef::Util::Windows::NetUser < Chef::Util::Windows
def validate_credentials(passwd)
token = Security.logon_user(@username, nil, passwd,
LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT)
- return true
+ true
rescue Chef::Exceptions::Win32APIError
- return false
+ false
end
def get_info