提交 12f696c2 编写于 作者: M Marin Jankovski

Remove unecessary return.

上级 8a365f5d
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册