Skip to content

Commit

Permalink
Match original ruby-sass' :quiet option as sassc behaved incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Jul 19, 2024
1 parent df4203f commit 701fb96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/sassc/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def render
alert_color: @options.fetch(:alert_color, nil),
fatal_deprecations: @options.fetch(:fatal_deprecations, []),
future_deprecations: @options.fetch(:future_deprecations, []),
logger: @options.fetch(:logger, nil),
logger: @options.fetch(:logger, quiet? ? ::Sass::Logger.silent : nil),
quiet_deps: @options.fetch(:quiet_deps, false),
silence_deprecations: @options.fetch(:silence_deprecations, []),
verbose: @options.fetch(:verbose, false)
Expand All @@ -43,8 +43,6 @@ def render
@loaded_urls = result.loaded_urls
@source_map = result.source_map

return if quiet?

css = result.css
css += "\n" unless css.empty?
unless @source_map.nil? || omit_source_map_url?
Expand Down

0 comments on commit 701fb96

Please sign in to comment.