From fbc0ff1f3ba28ce12e09062b3b1df3e8c4ee029f Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 5 Jun 2024 13:51:06 -0700 Subject: [PATCH] Fix signature for TokenTemplate.updateFile (#149673) This method isn't supposed to do any async work. --- dev/tools/gen_defaults/lib/template.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tools/gen_defaults/lib/template.dart b/dev/tools/gen_defaults/lib/template.dart index a46f1c165c..265237a640 100644 --- a/dev/tools/gen_defaults/lib/template.dart +++ b/dev/tools/gen_defaults/lib/template.dart @@ -69,7 +69,7 @@ abstract class TokenTemplate { /// If the file already contains a generated text block matching the /// [blockName], it will be replaced by the [generate] output. Otherwise /// the content will just be appended to the end of the file. - Future updateFile() async { + void updateFile() { final String contents = File(fileName).readAsStringSync(); final String beginComment = '$beginGeneratedComment - $blockName\n'; final String endComment = '$endGeneratedComment - $blockName\n';