Skip to content

Commit

Permalink
remove duplicates, fix error message
Browse files Browse the repository at this point in the history
remove extra "i" from the error message
remove reduntant code
  • Loading branch information
alexskr committed May 23, 2024
1 parent c53f759 commit 05e4bba
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,18 +396,9 @@ def get_ontology_and_submission
else
submission = ont.latest_submission(status: [:RDF])
end
if submission.nil?
error 404, "Ontology #{@params["ontology"]} submission not found."
end
error 404, "Ontology #{@params["ontology"]} submission not found." if submission.nil?
if !submission.ready?(status: [:RDF])
error(404,
"Ontology #{@params["ontology"]} submission i"+
"#{submission.submissionId} has not been parsed.")
end
if submission.nil?
if submission.nil?
error 404, "Ontology #{@params["acronym"]} does not have any submissions"
end
error 404, "Ontology #{@params["ontology"]} submission #{submission.submissionId} has not been parsed."
end

save_submission_language(submission)
Expand Down

0 comments on commit 05e4bba

Please sign in to comment.