Skip to content

Commit

Permalink
Use elsif
Browse files Browse the repository at this point in the history
  • Loading branch information
LeticiaErrandonea committed Apr 18, 2024
1 parent 87efd04 commit 14f3982
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/forms/add_to_order_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ def save

if @original_order.facility.id == @facility_id
add_to_order!
return true
end

if SettingsHelper.feature_on?(:cross_core_projects)
elsif SettingsHelper.feature_on?(:cross_core_projects)
if order_for_selected_facility.nil?
create_cross_core_project_and_add_order!
else
Expand Down

0 comments on commit 14f3982

Please sign in to comment.