Skip to content

Commit

Permalink
(maint) Use File.directory? instead of File.exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed May 29, 2018
1 parent 675928c commit df55b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppetlabs_spec_helper/tasks/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def check_directory_for_symlinks(dir='.')
ref = " --version #{opts['ref']}" if not opts['ref'].nil?
flags = " #{opts['flags']}" if opts['flags']
end
next if File::exists?(target)

next if File.directory?(target)

working_dir = module_working_directory
target_dir = File.expand_path('spec/fixtures/modules')
Expand Down

0 comments on commit df55b82

Please sign in to comment.