Skip to content

Commit

Permalink
Refator while loop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed May 26, 2024
1 parent 105b16b commit 47ae41b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/zeitwerk/loader/eager_load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ def load_file(path)
next_dirs = []

suffix.split("::").each do |segment|
until dirs.empty?
dir = dirs.shift

while (dir = dirs.shift)
ls(dir) do |basename, abspath, ftype|
next unless ftype == :directory

Expand Down

0 comments on commit 47ae41b

Please sign in to comment.