-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
I think it's weird that the arguments for Uri.dataFromString
here are indented at the same level as the function call:
void main() {
mapInPlace(
resultSourceMap.urls,
(url) =>
url == ''
? Uri.dataFromString(
stylesheet.span.file.getText(0),
encoding: utf8,
).toString()
: importCache.sourceMapUrl(Uri.parse(url)).toString(),
);
}
I'd prefer
void main() {
mapInPlace(
resultSourceMap.urls,
(url) =>
url == ''
? Uri.dataFromString(
stylesheet.span.file.getText(0),
encoding: utf8,
).toString()
: importCache.sourceMapUrl(Uri.parse(url)).toString(),
);
}
...which I think also better matches the way constructor initializers are indented.
goderbauer and passsy
Metadata
Metadata
Assignees
Labels
No labels