summaryrefslogtreecommitdiff
path: root/lib/chef/util
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:13:58 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:13:58 -0700
commitd7478e406d0bdcc15c8122fb7b4e39ad3208c9ac (patch)
treefd7eaa3d882d97d7013c57dda2886b9dbe7dd390 /lib/chef/util
parente71560df5cebbfb209089c6255e37e65f0e34d95 (diff)
downloadchef-d7478e406d0bdcc15c8122fb7b4e39ad3208c9ac.tar.gz
Style/MethodCallWithoutArgsParentheses
zero args methods don't get parens. this certainly reads better than the inverse. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/util')
-rw-r--r--lib/chef/util/windows/net_use.rb2
-rw-r--r--lib/chef/util/windows/net_user.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/util/windows/net_use.rb b/lib/chef/util/windows/net_use.rb
index 1a2acaed33..0c870b5121 100644
--- a/lib/chef/util/windows/net_use.rb
+++ b/lib/chef/util/windows/net_use.rb
@@ -66,7 +66,7 @@ class Chef::Util::Windows::NetUse < Chef::Util::Windows
end
def device
- get_info()[:remote]
+ get_info[:remote]
end
def delete
diff --git a/lib/chef/util/windows/net_user.rb b/lib/chef/util/windows/net_user.rb
index 78bd1e31a3..5545ff4ca5 100644
--- a/lib/chef/util/windows/net_user.rb
+++ b/lib/chef/util/windows/net_user.rb
@@ -168,6 +168,6 @@ class Chef::Util::Windows::NetUser < Chef::Util::Windows
end
def check_enabled
- (get_info()[:flags] & NetUser::UF_ACCOUNTDISABLE) != 0
+ (get_info[:flags] & NetUser::UF_ACCOUNTDISABLE) != 0
end
end