Skip to content

Commit 52e8e5c

Browse files
committed
cleanup
1 parent 89e6757 commit 52e8e5c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/critical_path_css/rails/config_loader.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ def configuration_file_path
2121
def format_css_paths
2222
config['css_paths'] = [config['css_path']] if config['css_path']
2323

24-
if config['css_paths']
25-
config['css_paths'].map! { |path| format_path(path) }
26-
else
27-
config['css_paths'] = [format_path(ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: ''))]
24+
unless config['css_paths']
25+
config['css_paths'] = [ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: '')]
2826
end
27+
config['css_paths'].map! { |path| format_path(path) }
2928
end
3029

3130
def format_path(path)

0 commit comments

Comments
 (0)