make conditional a bit clearer
This commit is contained in:
parent
588002d8c7
commit
5adaabdd30
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue