Skip to content

Commit a031aca

Browse files
committed
Swap the conditionals
1 parent 3bf15a1 commit a031aca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/sass/rails/railtie.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ class Railtie < ::Rails::Railtie
6767
end
6868

6969
initializer :setup_compression, group: :all do |app|
70-
unless Rails.env.development?
70+
if Rails.env.development?
71+
# Use expanded output instead of the sass default of :nested unless specified
72+
app.config.sass.style ||= :expanded
73+
else
7174
# config.assets.css_compressor may be set to nil in non-dev environments.
7275
# otherwise, the default is sass compression.
7376
app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor)
74-
else
75-
# Use expanded output instead of the sass default of :nested unless specified
76-
app.config.sass.style ||= :expanded
7777
end
7878
end
7979
end

0 commit comments

Comments
 (0)