Skip to content

Commit fbc0ff1

Browse files
authored
Fix signature for TokenTemplate.updateFile (#149673)
This method isn't supposed to do any async work.
1 parent 8ce3bfb commit fbc0ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tools/gen_defaults/lib/template.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract class TokenTemplate {
6969
/// If the file already contains a generated text block matching the
7070
/// [blockName], it will be replaced by the [generate] output. Otherwise
7171
/// the content will just be appended to the end of the file.
72-
Future<void> updateFile() async {
72+
void updateFile() {
7373
final String contents = File(fileName).readAsStringSync();
7474
final String beginComment = '$beginGeneratedComment - $blockName\n';
7575
final String endComment = '$endGeneratedComment - $blockName\n';

0 commit comments

Comments
 (0)