summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/string_path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/string_path.rb b/lib/gitlab/string_path.rb
index 1eb8162f805..af80a502bf6 100644
--- a/lib/gitlab/string_path.rb
+++ b/lib/gitlab/string_path.rb
@@ -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)