Fix analyzer warning. (flutter/engine#4715)
* Fix analyzer warning. warning • This function declares a return type of 'Future<void>', but doesn't end with a return statement at flutter/frontend_server/lib/server.dart:340:1 • missing_return * Remove await * Ignore warning.
This commit is contained in:
committed by
GitHub
parent
a9798b413c
commit
91babc8e83
@@ -337,7 +337,8 @@ String _escapePath(String path) {
|
||||
}
|
||||
|
||||
// https://ninja-build.org/manual.html#_depfile
|
||||
Future<void> _writeDepfile(Program program, String output, String depfile) async {
|
||||
// TODO(dartbug.com/32320) Clean up analyzer directive below once that is fixed.
|
||||
Future<void> _writeDepfile(Program program, String output, String depfile) async { // ignore: missing_return
|
||||
final IOSink file = new File(depfile).openWrite();
|
||||
file.write(_escapePath(output));
|
||||
file.write(':');
|
||||
|
||||
Reference in New Issue
Block a user