Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 6, 2024
1 parent 4e912d8 commit fa5db30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/facter/custom_facts/core/execution/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def with_env(values)
ENV[var] = value
end
# execute the caller's block, capture the return value
rv = yield
yield
# use an ensure block to make absolutely sure we restore the variables
ensure
# restore the old values
Expand All @@ -39,7 +39,6 @@ def with_env(values)
end
end
# return the captured return value
rv
end

def execute(command, options = {})
Expand Down

0 comments on commit fa5db30

Please sign in to comment.