Fix Rubocop issues

Signed-off-by: James 'zofrex' Sanderson <zofrex@gmail.com>
This commit is contained in:
James 'zofrex' Sanderson 2021-10-05 19:01:15 +01:00
parent 41ea0da4a9
commit acf5a2c955
2 changed files with 2 additions and 2 deletions

View file

@ -504,7 +504,7 @@ module Inspec::Resources
# search for the service
srv = /(^.*\/#{service_name}$)/.match(cmd.stdout)
srv = %r{^.*/#{service_name}$)}.match(cmd.stdout)
return nil if srv.nil? || srv[0].nil?
enabled = true

View file

@ -640,7 +640,7 @@ class MockLoader
if @platform && (@platform[:name] == "freebsd" && @platform[:release].to_f >= 10)
mock_cmds.merge!(
"service sendmail enabled" => cmd.call("service-sendmail-enabled"),
"service sendmail enabled" => cmd.call("service-sendmail-enabled")
)
end