Fix signature for TokenTemplate.updateFile (#149673)
This method isn't supposed to do any async work.
This commit is contained in:
parent
8ce3bfb6ca
commit
fbc0ff1f3b
@ -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<void> updateFile() async {
|
||||
void updateFile() {
|
||||
final String contents = File(fileName).readAsStringSync();
|
||||
final String beginComment = '$beginGeneratedComment - $blockName\n';
|
||||
final String endComment = '$endGeneratedComment - $blockName\n';
|
||||
|
Loading…
x
Reference in New Issue
Block a user