Skip to content

Commit

Permalink
Ensuring that users can append more than one README
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed May 24, 2024
1 parent 5d1fc4e commit 4099280
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/services/work_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,5 @@ def validate_files
return if @work.resource.migrated
readme = Readme.new(work, nil)
errors.add(:base, "You must include a README. <a href='#{work_readme_select_path(work)}'>Please upload one</a>") if readme.blank?
errors.add(:base, "You must provide only one README file upload") if work.readme_uploads.length > 1
end
end

0 comments on commit 4099280

Please sign in to comment.