Commit f9f6bba9 authored by James Fargher's avatar James Fargher

Use method as per review

parent 8da2ff21
...@@ -11,8 +11,8 @@ module Gitlab ...@@ -11,8 +11,8 @@ module Gitlab
def initialize(globs) def initialize(globs)
globs = Array(globs) globs = Array(globs)
@top_level_only = globs.all? { |glob| top_level_glob?(glob) } @top_level_only = globs.all?(&method(:top_level_glob?))
@exact_globs, @pattern_globs = globs.partition { |glob| exact_glob?(glob) } @exact_globs, @pattern_globs = globs.partition(&method(:exact_glob?))
end end
def satisfied_by?(pipeline, seed) def satisfied_by?(pipeline, seed)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment