From 155f4d73946c522f3224288546c70085fb0ff44b Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 31 Aug 2022 16:04:21 +0800 Subject: [PATCH] Fix collection of `unused_pyc_files`. --- Library/Homebrew/cleanup.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 83d18ca333..ed776ec6dc 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -531,6 +531,7 @@ module Homebrew unused_pyc_files += pyc_files.reject { |k,| seen_non_pyc_file[k] } .values + .flatten return if unused_pyc_files.blank? unused_pyc_files.each do |pyc|