Commit 66759807 authored by James Lopez's avatar James Lopez

refactor code

parent d5886465
......@@ -4,11 +4,9 @@ module EE
include ::EE::Emails::BaseService
def execute
email = super
log_audit_event(action: :create) if email.persisted?
email
super.tap do |email|
log_audit_event(action: :create) if email.persisted?
end
end
end
end
......
......@@ -4,11 +4,9 @@ module EE
include ::EE::Emails::BaseService
def execute
result = super
log_audit_event(action: :destroy)
result
super.tap do
log_audit_event(action: :destroy)
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment