Commit c177784d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use short method call in StringPath instead block

parent c33b105f
......@@ -72,7 +72,7 @@ module Gitlab
def directories
return [] unless directory?
children.select { |child| child.directory? }
children.select(&:directory?)
end
def directories!
......@@ -81,7 +81,7 @@ module Gitlab
def files
return [] unless directory?
children.select { |child| child.file? }
children.select(&:file?)
end
def ==(other)
......
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