From c86a402110078f11d4364439d8fea9d57ab7864d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 22 Feb 2024 23:21:28 +0000 Subject: [PATCH] Fix RuboCop `Lint/RedundantDirGlobSort` offenses --- Library/.rubocop.yml | 2 -- Library/Homebrew/livecheck/livecheck.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index e825c1e09e..1d36c46984 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -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: diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index 42eb080e67..ef864b7dd2 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -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