Skip to content

Commit

Permalink
(maint) - fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Aug 11, 2023
1 parent 53d4f71 commit 18407ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec-puppet/consts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module RSpec::Puppet::Consts
windows: {
'File::PATH_SEPARATOR' => ';',
'File::ALT_SEPARATOR' => '\\',
'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote("\\")}#{Regexp.quote('/')}]/
'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote('\\')}#{Regexp.quote('/')}]/
}
}.freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/rspec-puppet/support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def setup_puppet

def with_vardir
vardir = setup_puppet
return yield(vardir) if block_given?
yield(vardir) if block_given?
ensure
FileUtils.rm_rf(vardir) if vardir && File.directory?(vardir)
end
Expand Down

0 comments on commit 18407ce

Please sign in to comment.