Skip to content

Commit 0cf96e4

Browse files
committed
format
1 parent 6dec55f commit 0cf96e4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/src/generate/build_impl.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,8 @@ class BuildImpl {
521521
'Files may only be output in the root (application) package.');
522522
}
523523
if (_inputsByPackage[output.package]?.contains(output) == true) {
524-
throw new InvalidOutputException(new Asset(output, ''),
525-
'Cannot overwrite inputs.');
524+
throw new InvalidOutputException(
525+
new Asset(output, ''), 'Cannot overwrite inputs.');
526526
}
527527
}
528528

@@ -532,6 +532,7 @@ class BuildImpl {
532532
for (var output in expectedOutputs) {
533533
inputNode.outputs.add(output);
534534
var existing = _assetGraph.get(output);
535+
535536
/// If its null or of type [AssetNode], then insert a
536537
/// [GeneratedAssetNode].
537538
if (existing is! GeneratedAssetNode) {

lib/src/generate/options.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ class BuildOptions {
7979
address ??= 'localhost';
8080
directory ??= '.';
8181
port ??= 8000;
82-
requestHandler ??= createStaticHandler(
83-
directory, defaultDocument: 'index.html', listDirectories: true,
82+
requestHandler ??= createStaticHandler(directory,
83+
defaultDocument: 'index.html',
84+
listDirectories: true,
8485
serveFilesOutsidePath: true);
8586
debounceDelay ??= const Duration(milliseconds: 250);
8687
packageGraph ??= new PackageGraph.forThisPackage();

0 commit comments

Comments
 (0)