OS::Mac.mdfind: No need to guard on OS.mac?

This code is only used on macOS.
This commit is contained in:
Shaun Jackman 2018-08-13 23:37:00 -07:00
parent 63c5bd96a0
commit a447548600

View File

@ -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