]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Lint/RedundantDirGlobSort (#38585).
authorGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 06:01:10 +0000 (06:01 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 06:01:10 +0000 (06:01 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22651 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/initializers/00-core_plugins.rb
lib/redmine/plugin_loader.rb

index e20599000cb88a8262c9a7e64b6a6c9fe1ecc22e..4fbab32500fcce62bd87d9c6a2c03b54378a311f 100644 (file)
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 # Loads the core plugins located in lib/plugins
-Dir.glob(Rails.root.join('lib/plugins/*')).sort.each do |directory|
+Dir.glob(Rails.root.join('lib/plugins/*')).each do |directory|
   next unless File.directory?(directory)
 
   initializer = File.join(directory, 'init.rb')
index 9323b18a74abae6016409fb549ddbb03e2a18d85..5b4b4937415272211d5eb7db94bc7968744c1951 100644 (file)
@@ -67,7 +67,7 @@ module Redmine
     def self.setup
       @plugin_directories = []
 
-      Dir.glob(File.join(directory, '*')).sort.each do |directory|
+      Dir.glob(File.join(directory, '*')).each do |directory|
         next unless File.directory?(directory)
 
         @plugin_directories << PluginPath.new(directory)