mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fix RuboCop offense Lint/RedundantDirGlobSort (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22651 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bac1e2213a
commit
ae971404cc
@ -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')
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user