diff options
author | Jason Roehm <jasonr@3db-labs.com> | 2016-03-15 09:47:47 -0400 |
---|---|---|
committer | Jason Roehm <jasonr@3db-labs.com> | 2016-03-15 09:47:47 -0400 |
commit | c57c9c41e02907959a5dd78f2896734f0034aafc (patch) | |
tree | 1c4d2b0885c9b30d40c0e8e22f3de43098993cff /lib | |
parent | b6ede127294fd0df63facb9a65791c018067db9f (diff) | |
download | gitlab-ce-c57c9c41e02907959a5dd78f2896734f0034aafc.tar.gz |
fix rubocop violation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
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 bc6fea9a286..610c56ddd92 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.nil? && pattern == 'triggers' if pattern.first == "/" && pattern.last == "/" Regexp.new(pattern[1...-1]) =~ ref |