diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-01-30 01:16:43 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-01-30 01:16:43 +0800 |
commit | 965f40d9ac966b252a03f9967ce3710cd4985323 (patch) | |
tree | ed804f0bc85ae947acc94a0a6c4a20b55969edf2 /lib | |
parent | 2d24dca485f57f3f7ecf0da0cbf07a566d90a98c (diff) | |
download | gitlab-ce-965f40d9ac966b252a03f9967ce3710cd4985323.tar.gz |
Port this style change from EE
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/metrics/influx_db.rb | 4 |
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. |