Refactored and cleaned a minor bit in runner.rb

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-07-18 01:43:47 -07:00
parent 7de549577c
commit 9f91b53193
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ module Inspec::Resources
end
def to_s
if file then
if file
"File #{source_path}"
else
"Bad File on %s" % [inspec.backend.class]

View file

@ -255,7 +255,7 @@ module Inspec
resource = arg[0]
# check to see if we are using a filtertable object
resource = arg[0].resource if arg[0].class.superclass == FilterTable::Table
resource = resource.resource if resource.is_a? FilterTable::Table
if resource.respond_to?(:resource_skipped?) && resource.resource_skipped?
return rspec_skipped_block(arg, opts, resource.resource_exception_message)
end