keg: uniq.sort -> sort.uniq

This commit is contained in:
Steven Peters 2019-10-21 12:29:37 -07:00
parent 1ad0addbc8
commit 20e85acec4

View File

@ -75,7 +75,7 @@ class Keg
opt
var/homebrew/linked
]
).map { |dir| HOMEBREW_PREFIX/dir }.uniq.sort.freeze
).map { |dir| HOMEBREW_PREFIX/dir }.sort.uniq.freeze
# Keep relatively in sync with
# https://github.com/Homebrew/install/blob/master/install
@ -98,7 +98,7 @@ class Keg
HOMEBREW_REPOSITORY,
Language::Python.homebrew_site_packages,
]
).uniq.sort.freeze
).sort.uniq.freeze
# These paths relative to the keg's share directory should always be real
# directories in the prefix, never symlinks.