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