mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove dead code
I'm pretty sure that case doesn't happen, and besides there's no spec for it.
This commit is contained in:
@@ -17,7 +17,7 @@ module Admin
|
||||
render :bulk_update, locals: { action: permitted_params[:action_name] }
|
||||
}
|
||||
end
|
||||
elsif @cp_set.errors.present?
|
||||
else
|
||||
respond_to do |format|
|
||||
format.json { render json: { errors: @cp_set.errors }, status: :bad_request }
|
||||
format.turbo_stream {
|
||||
@@ -25,10 +25,6 @@ module Admin
|
||||
render :bulk_update, locals: { action: permitted_params[:action_name] }
|
||||
}
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
format.all { render body: nil, status: :internal_server_error }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user