Skip to content

Commit

Permalink
perf(mason): speed up hooks execution by removing unnecessary file re…
Browse files Browse the repository at this point in the history
…ad (felangel#454)
  • Loading branch information
felangel authored Jul 18, 2022
1 parent 2f9297d commit 503f3e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/mason/lib/src/hooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ class GeneratorHooks {
}
}

final packageConfigBytes = await packageConfigFile.readAsBytes();
packageConfigUri = Uri.dataFromBytes(packageConfigBytes);
packageConfigUri = packageConfigFile.uri;
}

Uri? uri;
Expand Down

0 comments on commit 503f3e2

Please sign in to comment.