summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Roehm <jasonr@3db-labs.com>2016-03-15 21:28:06 -0400
committerJason Roehm <jasonr@3db-labs.com>2016-03-15 21:28:06 -0400
commit5adaabdd30388993ce547a782146d166d30cfc9b (patch)
tree3381c92ac283975e11576daa711e188e2d3a2f85
parent588002d8c70da8b4c52e409c62a95a63e24b391b (diff)
downloadgitlab-ce-5adaabdd30388993ce547a782146d166d30cfc9b.tar.gz
make conditional a bit clearer
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index abab91ddf53..2228425076b 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -289,7 +289,7 @@ module Ci
return false if path && path != self.path
return true if tag && pattern == 'tags'
return true if !tag && pattern == 'branches'
- return true if !trigger_request.nil? && pattern == 'triggers'
+ return true if trigger_request.present? && pattern == 'triggers'
if pattern.first == "/" && pattern.last == "/"
Regexp.new(pattern[1...-1]) =~ ref