Skip to content

Commit

Permalink
use exist instead of file.file?
Browse files Browse the repository at this point in the history
  • Loading branch information
caitmich committed Jun 26, 2024
1 parent 4e7c20c commit c4ef859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/kit_import_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def import_templates(template_type)
return unless Dir.exist?(kit_template_dir)

Dir["#{kit_template_dir}/*"].each do |file|
return unless File.file?(file)
return unless File.exist?(file)

file_name = name_file(File.basename(file), destination)
FileUtils.cp(file, "#{destination}/#{file_name}")
Expand Down

0 comments on commit c4ef859

Please sign in to comment.