From a447548600ff53db6a169584798cf33c0e1589f7 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Mon, 13 Aug 2018 23:37:00 -0700 Subject: [PATCH] OS::Mac.mdfind: No need to guard on OS.mac? This code is only used on macOS. --- Library/Homebrew/os/mac.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index bbdd032e8a..d352708d0f 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -240,7 +240,6 @@ module OS end def mdfind(*ids) - return [] unless OS.mac? (@mdfind ||= {}).fetch(ids) do @mdfind[ids] = Utils.popen_read("/usr/bin/mdfind", mdfind_query(*ids)).split("\n") end