mirror of
https://github.com/redmine/redmine.git
synced 2026-01-17 04:52:56 +01:00
Fix RuboCop offense Style/BlockDelimiters, Layout/MultilineBlockLayout, and Layout/BlockEndNewline (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22645 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -112,9 +112,11 @@ module Redmine
|
||||
|
||||
def asset_paths
|
||||
base_dir = Pathname.new(path)
|
||||
paths = base_dir.children.filter_map{|child| child if child.directory? &&
|
||||
child.basename.to_s != "src" &&
|
||||
!child.basename.to_s.start_with?('.') }
|
||||
paths = base_dir.children.filter_map do |child|
|
||||
child if child.directory? &&
|
||||
child.basename.to_s != "src" &&
|
||||
!child.basename.to_s.start_with?('.')
|
||||
end
|
||||
Redmine::AssetPath.new(base_dir, paths, asset_prefix)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user