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';