Skip to content

Commit 18407ce

Browse files
author
jordanbreen28
committed
(maint) - fix rubocop
1 parent 53d4f71 commit 18407ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rspec-puppet/consts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module RSpec::Puppet::Consts
1010
windows: {
1111
'File::PATH_SEPARATOR' => ';',
1212
'File::ALT_SEPARATOR' => '\\',
13-
'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote("\\")}#{Regexp.quote('/')}]/
13+
'Pathname::SEPARATOR_PAT' => /[#{Regexp.quote('\\')}#{Regexp.quote('/')}]/
1414
}
1515
}.freeze
1616

lib/rspec-puppet/support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def setup_puppet
405405

406406
def with_vardir
407407
vardir = setup_puppet
408-
return yield(vardir) if block_given?
408+
yield(vardir) if block_given?
409409
ensure
410410
FileUtils.rm_rf(vardir) if vardir && File.directory?(vardir)
411411
end

0 commit comments

Comments
 (0)