From 6cbe3466fbd2539db027435d19b51db02746ce54 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Fri, 13 Nov 2015 01:03:15 +0100 Subject: [PATCH] update rubocop 0.35.1 --- lib/resources/registry_key.rb | 2 +- lib/resources/security_policy.rb | 2 +- lib/utils/simpleconfig.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resources/registry_key.rb b/lib/resources/registry_key.rb index a6c6e19ff..afacea805 100644 --- a/lib/resources/registry_key.rb +++ b/lib/resources/registry_key.rb @@ -41,7 +41,7 @@ class RegistryKey < Inspec.resource(1) val = registry_value(@reg_key, meth) # verify data - if (val[:exit_code] == 0) + if val[:exit_code] == 0 return convert_value(val[:data]) else return nil diff --git a/lib/resources/security_policy.rb b/lib/resources/security_policy.rb index 38199fe9e..7683b74af 100644 --- a/lib/resources/security_policy.rb +++ b/lib/resources/security_policy.rb @@ -41,7 +41,7 @@ class SecurityPolicy < Inspec.resource(1) def method_missing(method) # load data if needed - if (@loaded == false) + if @loaded == false load end diff --git a/lib/utils/simpleconfig.rb b/lib/utils/simpleconfig.rb index c4c6129ad..9eddbfc8b 100644 --- a/lib/utils/simpleconfig.rb +++ b/lib/utils/simpleconfig.rb @@ -42,7 +42,7 @@ class SimpleConfig start_idx = 2 i = 0 count = values - 1 - return match[start_idx] if (values == 1) + return match[start_idx] if values == 1 # iterate over expected parameters values = []