Skip to content

Commit

Permalink
Lazy evaluate default output path
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed May 9, 2023
1 parent 87ac75c commit 3de7469
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/sassc/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ def file_url
end

def output_path
@output_path ||= @options.fetch(
:output_path,
("#{filename.delete_suffix(File.extname(filename))}.css" if filename)
)
@output_path ||= @options.fetch(:output_path) do
"#{filename.delete_suffix(File.extname(filename))}.css" if filename
end
end

def output_url
Expand Down

0 comments on commit 3de7469

Please sign in to comment.