File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def solution
26
26
# @param {String[]} dirs
27
27
def fill_directories ( path , dirs )
28
28
::Dir . foreach ( path ) . reject { |name | name . start_with? ( '.' ) } . each do |entry |
29
- unless ::File . file? ( "#{ path } /#{ entry } " )
30
- dirs << "#{ path } /#{ entry } "
31
- fill_directories ( "#{ path } /#{ entry } " , dirs )
32
- end
29
+ next if ::File . file? ( "#{ path } /#{ entry } " )
30
+
31
+ dirs << "#{ path } /#{ entry } "
32
+
33
+ fill_directories ( "#{ path } /#{ entry } " , dirs )
33
34
end
34
35
end
35
36
end
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ require 'English'
5
5
::Gem ::Specification . new do |s |
6
6
s . required_ruby_version = '>= 3.0'
7
7
s . name = 'leetcode-ruby'
8
- s . version = '6.2.3'
8
+ s . version = '6.2.3.1 '
9
9
s . license = 'MIT'
10
10
s . files = ::Dir [ 'lib/**/*.rb' ] + %w[ bin/leetcode-ruby README.md LICENSE ]
11
11
s . executable = 'leetcode-ruby'
You can’t perform that action at this time.
0 commit comments