Skip to content

Commit

Permalink
Fix identical conditional branches
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 16, 2016
1 parent f235e67 commit 1493506
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/app/controllers/spree/admin/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ def advance

if @order.confirm?
flash[:success] = Spree.t('order_ready_for_confirm')
redirect_to confirm_admin_order_url(@order)
else
flash[:error] = @order.errors.full_messages
redirect_to confirm_admin_order_url(@order)
end
redirect_to confirm_admin_order_url(@order)
end
end

Expand Down

0 comments on commit 1493506

Please sign in to comment.