From 5ebf3acc94fff4ea14024154679cbe20cef3fc6f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 25 Jan 2022 12:10:50 +0000 Subject: [PATCH] Revert "cleanup: check if symlinks are readable." --- Library/Homebrew/cleanup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 88c8c85a8d..782d8447be 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -489,7 +489,7 @@ module Homebrew dir.find do |path| path.extend(ObserverPathnameExtension) if path.symlink? - if path.readable_real? && !path.resolved_path_exists? + unless path.resolved_path_exists? path.uninstall_info if path.to_s.match?(Keg::INFOFILE_RX) && !dry_run? if dry_run?