]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/BlockDelimiters, Layout/MultilineBlockLayout, and Layout...
authorGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 01:41:44 +0000 (01:41 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 01:41:44 +0000 (01:41 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22645 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/themes.rb

index 6126fde5e694ed60e237d96aa7ab305f62329e2a..14e04f06350f76a7d11a3a6d2f1c4d65e2e91f54 100644 (file)
@@ -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