Skip to content

Commit 1153896

Browse files
authored
Merge pull request #377 from ivanovaleksey/fix-code-style
fix some code style
2 parents df59500 + a6d5e32 commit 1153896

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/sprockets/railtie.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def initialize
8282
end
8383

8484
LOOSE_APP_ASSETS = lambda do |logical_path, filename|
85-
filename.start_with?(::Rails.root.join("app/assets").to_s) &&
86-
!['.js', '.css', ''].include?(File.extname(logical_path))
85+
filename.start_with?(::Rails.root.join("app/assets").to_s) &&
86+
!['.js', '.css', ''].include?(File.extname(logical_path))
8787
end
8888

8989
class OrderedOptions < ActiveSupport::OrderedOptions
@@ -102,10 +102,10 @@ def configure(&block)
102102

103103
initializer :set_default_precompile do |app|
104104
if using_sprockets4?
105-
raise ManifestNeededError if !::Rails.root.join("app/assets/config/manifest.js").exist?
106-
app.config.assets.precompile += %w( manifest.js )
105+
raise ManifestNeededError unless ::Rails.root.join("app/assets/config/manifest.js").exist?
106+
app.config.assets.precompile += %w( manifest.js )
107107
else
108-
app.config.assets.precompile += [LOOSE_APP_ASSETS, /(?:\/|\\|\A)application\.(css|js)$/]
108+
app.config.assets.precompile += [LOOSE_APP_ASSETS, /(?:\/|\\|\A)application\.(css|js)$/]
109109
end
110110
end
111111

0 commit comments

Comments
 (0)