mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-18 23:18:15 +00: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:
parent
a547662ad0
commit
352decdb1e
@ -112,9 +112,11 @@ module Redmine
|
|||||||
|
|
||||||
def asset_paths
|
def asset_paths
|
||||||
base_dir = Pathname.new(path)
|
base_dir = Pathname.new(path)
|
||||||
paths = base_dir.children.filter_map{|child| child if child.directory? &&
|
paths = base_dir.children.filter_map do |child|
|
||||||
child.basename.to_s != "src" &&
|
child if child.directory? &&
|
||||||
!child.basename.to_s.start_with?('.') }
|
child.basename.to_s != "src" &&
|
||||||
|
!child.basename.to_s.start_with?('.')
|
||||||
|
end
|
||||||
Redmine::AssetPath.new(base_dir, paths, asset_prefix)
|
Redmine::AssetPath.new(base_dir, paths, asset_prefix)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user