Skip to content
Snippets Groups Projects
Commit ccf39688 authored by Markus Reiter's avatar Markus Reiter
Browse files

Add comment about refinement scope.

parent 2773ce61
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,7 @@ module Homebrew
return if dry_run?
return unless (cache/"downloads").directory?
# We can't use `.reject(&:incomplete?) here due to the refinement scope.
downloads = (cache/"downloads").children.reject { |path| path.incomplete? } # rubocop:disable Style/SymbolProc
referenced_downloads = [cache, cache/"Cask"].select(&:directory?)
.flat_map(&:children)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment