Remove unecessary return.
This commit is contained in:
parent
8a365f5d56
commit
12f696c23e
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue