Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#18494) Rearrange loop to remove Ruby 2.0 warning
Ruby 2.0 warned of the complex assignments in the while loop: lib/puppet/file_serving/fileset.rb:139: warning: found = in conditional, should be == The block that shifts to the next recursion level has been removed from the loop expression to prevent the interpreter from warning.
- Loading branch information
This check will never get exercised if
current_path
contains no directories as thenext
statements on lines 140 and 141 will keep skipping to the next iteration.