Skip to content

Commit

Permalink
Fix analyzer warning. (flutter#4715)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
aam authored Feb 26, 2018
1 parent 86ec3db commit b076f1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend_server/lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(':');
Expand Down

0 comments on commit b076f1b

Please sign in to comment.