Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-07-02 18:02:26 +0400
committerMarin Jankovski <marin@gitlab.com>2014-07-02 18:02:26 +0400
commit12f696c23e028f28ee29d5a3426ce28747f86cf1 (patch)
tree7991408da936471a040781e75b23f6aa74bb7a7e /app/services/notification_service.rb
parent8a365f5d56db350965e2aa2f971197ed2fc96e45 (diff)
Remove unecessary return.
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb3
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