mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
update rubocop 0.35.1
This commit is contained in:
parent
007594eef7
commit
6cbe3466fb
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ class RegistryKey < Inspec.resource(1)
|
||||||
val = registry_value(@reg_key, meth)
|
val = registry_value(@reg_key, meth)
|
||||||
|
|
||||||
# verify data
|
# verify data
|
||||||
if (val[:exit_code] == 0)
|
if val[:exit_code] == 0
|
||||||
return convert_value(val[:data])
|
return convert_value(val[:data])
|
||||||
else
|
else
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -41,7 +41,7 @@ class SecurityPolicy < Inspec.resource(1)
|
||||||
|
|
||||||
def method_missing(method)
|
def method_missing(method)
|
||||||
# load data if needed
|
# load data if needed
|
||||||
if (@loaded == false)
|
if @loaded == false
|
||||||
load
|
load
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class SimpleConfig
|
||||||
start_idx = 2
|
start_idx = 2
|
||||||
i = 0
|
i = 0
|
||||||
count = values - 1
|
count = values - 1
|
||||||
return match[start_idx] if (values == 1)
|
return match[start_idx] if values == 1
|
||||||
|
|
||||||
# iterate over expected parameters
|
# iterate over expected parameters
|
||||||
values = []
|
values = []
|
||||||
|
|
Loading…
Reference in a new issue