Remove unecessary return.

This commit is contained in:
Marin Jankovski 2014-07-02 16:02:26 +02:00
parent 8a365f5d56
commit 12f696c23e

View file

@ -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