Merge pull request #4678 from sjackman/mdfind

OS::Mac.mdfind: No need to guard on OS.mac?
This commit is contained in:
Mike McQuaid 2018-08-18 12:06:05 +01:00 committed by GitHub
commit b2bfa6247f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,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