Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c5d0a25

Browse files
committed
Remove redundant check
This check is done in a method that is always called before we get here so this is unnecessary.
1 parent 63d09d3 commit c5d0a25

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/controllers/callbacks_controller.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ def status
1616
private
1717

1818
def extract_and_update_status_and_handle(params)
19-
unless params[:status]
20-
raise ActionController::RoutingError, 'Invalid Status'
21-
end
2219
@submission.status = params[:status] if valid_status?(params[:status])
2320
@submission.handle = params[:handle] if @submission.status == 'approved'
2421
end

0 commit comments

Comments
 (0)