mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Fix some places where a null could sneak into a boolean condition
This commit is contained in:
parent
a950b2daaa
commit
3b47e34c87
@ -350,11 +350,11 @@ RenderResult _newRenderResult(
|
||||
}
|
||||
|
||||
var json = result.sourceMap
|
||||
.toJson(includeSourceContents: options.sourceMapContents);
|
||||
.toJson(includeSourceContents: isTruthy(options.sourceMapContents));
|
||||
sourceMapBytes = utf8Encode(jsonEncode(json));
|
||||
|
||||
if (!isTruthy(options.omitSourceMapUrl)) {
|
||||
var url = options.sourceMapEmbed
|
||||
var url = isTruthy(options.sourceMapEmbed)
|
||||
? Uri.dataFromBytes(sourceMapBytes, mimeType: "application/json")
|
||||
: p.toUri(options.outFile == null
|
||||
? sourceMapPath
|
||||
|
Loading…
Reference in New Issue
Block a user