diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-07-02 18:02:26 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-07-02 18:02:26 +0400 |
commit | 12f696c23e028f28ee29d5a3426ce28747f86cf1 (patch) | |
tree | 7991408da936471a040781e75b23f6aa74bb7a7e /app/services/notification_service.rb | |
parent | 8a365f5d56db350965e2aa2f971197ed2fc96e45 (diff) |
Remove unecessary return.
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 9a1cd541f60..6c14a2abaf4 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -326,9 +326,8 @@ class NotificationService def previous_record(object, attribute) if object && attribute if object.previous_changes.include?(attribute) - return object.previous_changes[attribute].first + object.previous_changes[attribute].first end end - nil end end |