Commit 965f40d9 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Port this style change from EE

parent 2d24dca4
...@@ -147,9 +147,7 @@ module Gitlab ...@@ -147,9 +147,7 @@ module Gitlab
# #
# See `Gitlab::Metrics::Transaction#add_event` for more details. # See `Gitlab::Metrics::Transaction#add_event` for more details.
def add_event(*args) def add_event(*args)
trans = current_transaction current_transaction&.add_event(*args)
trans&.add_event(*args)
end end
# Returns the prefix to use for the name of a series. # Returns the prefix to use for the name of a series.
......
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