Skip to content

Commit

Permalink
chore: fix minor cop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Jun 27, 2024
1 parent b7e2d46 commit ab2e7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/file_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def dir_for_unit_code_and_id(unit_code, unit_id, create = true)
dst = "#{file_server}/" # trust the server config and passed in type for paths
dst << sanitized_path("#{unit_code}-#{unit_id}") << '/'

FileUtils.mkdir_p dst if create && (!Dir.exist?(dst))
FileUtils.mkdir_p dst if create && !Dir.exist?(dst)

dst
end
Expand Down

0 comments on commit ab2e7f4

Please sign in to comment.