summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-01-30 01:16:43 +0800
committerLin Jen-Shin <godfat@godfat.org>2019-01-30 01:16:43 +0800
commit965f40d9ac966b252a03f9967ce3710cd4985323 (patch)
treeed804f0bc85ae947acc94a0a6c4a20b55969edf2 /lib
parent2d24dca485f57f3f7ecf0da0cbf07a566d90a98c (diff)
downloadgitlab-ce-965f40d9ac966b252a03f9967ce3710cd4985323.tar.gz
Port this style change from EE
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/metrics/influx_db.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/influx_db.rb b/lib/gitlab/metrics/influx_db.rb
index 1359e973590..0b04340fbb5 100644
--- a/lib/gitlab/metrics/influx_db.rb
+++ b/lib/gitlab/metrics/influx_db.rb
@@ -147,9 +147,7 @@ module Gitlab
#
# See `Gitlab::Metrics::Transaction#add_event` for more details.
def add_event(*args)
- trans = current_transaction
-
- trans&.add_event(*args)
+ current_transaction&.add_event(*args)
end
# Returns the prefix to use for the name of a series.