summaryrefslogtreecommitdiff
path: root/app/models/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-12-19 15:51:02 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2019-01-31 16:51:17 +0100
commit7327fb4aa7239024970a063b4a68ccdeed0e545e (patch)
treea760f466d3b2a057f8d475a6e6ce05cecea1c1cd /app/models/ci
parent084b7edb17d25a3d43526cca560569dd82c5c09d (diff)
downloadgitlab-ce-7327fb4aa7239024970a063b4a68ccdeed0e545e.tar.gz
Present all pipeline triggers using trigger presenter
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/trigger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/trigger.rb b/app/models/ci/trigger.rb
index 3a9cdfcc35e..637148c4ce4 100644
--- a/app/models/ci/trigger.rb
+++ b/app/models/ci/trigger.rb
@@ -30,7 +30,7 @@ module Ci
end
def short_token
- token[0...4]
+ token[0...4] if token.present?
end
def legacy?