Enable the Layout/IndentAssignment cop

This commit is contained in:
gregoirenovel 2018-01-15 18:56:00 +01:00
parent 9e0e553f80
commit 3363e21427
2 changed files with 7 additions and 7 deletions

View file

@ -15,11 +15,11 @@ class NotificationService
def notification
@notification ||=
begin
Notification.find_by! dossier_id: @dossier_id, already_read: false, type_notif: @type_notif
rescue ActiveRecord::RecordNotFound
Notification.new dossier_id: @dossier_id, type_notif: @type_notif, liste: []
end
begin
Notification.find_by! dossier_id: @dossier_id, already_read: false, type_notif: @type_notif
rescue ActiveRecord::RecordNotFound
Notification.new dossier_id: @dossier_id, type_notif: @type_notif, liste: []
end
end
def text_for_notif attribut=''