Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 3 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /