Unify code in Users::Dossiers::InvitesController#show

This commit is contained in:
gregoirenovel 2018-10-10 10:31:24 +02:00
parent 6d139ed1a8
commit 4e2964aec3

View file

@ -16,7 +16,7 @@ class Users::Dossiers::InvitesController < UsersController
if dossier.brouillon?
redirect_to brouillon_dossier_path(dossier)
else
return redirect_to dossier_path(dossier)
redirect_to dossier_path(dossier)
end
rescue ActiveRecord::RecordNotFound
flash.alert = t('errors.messages.dossier_not_found')