Fix RuboCop Lint/RedundantDirGlobSort offenses

This commit is contained in:
Issy Long 2024-02-22 23:21:28 +00:00
parent e9cb65bfba
commit c86a402110
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View File

@ -462,8 +462,6 @@ Style/WordArray:
MinSize: 4
# TODO: Enable these cops once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
Lint/RedundantDirGlobSort:
Enabled: false
Naming/BlockForwarding:
Enabled: false
Performance/BindCall:

View File

@ -83,7 +83,7 @@ module Homebrew
other_taps.each_value do |tap|
tap_strategy_path = "#{tap.path}/livecheck/strategy"
Dir["#{tap_strategy_path}/*.rb"].sort.each { require(_1) } if Dir.exist?(tap_strategy_path)
Dir["#{tap_strategy_path}/*.rb"].each { require(_1) } if Dir.exist?(tap_strategy_path)
end
end