commit | 8009f99ef8c8362c8d4360dc8149949259f5271d | [log] [tgz] |
---|---|---|
author | Brian Wilkerson <brianwilkerson@google.com> | Tue Mar 03 16:14:35 2020 -0800 |
committer | Brian Wilkerson <brianwilkerson@google.com> | Tue Mar 03 16:14:35 2020 -0800 |
tree | 597fc93c1b364ab8ecf6dcdb35a39a775e2ee2df | |
parent | 4093ccd1142d6827925f132d5d81c4b76398d6bd [diff] |
Improve the highlight range for avoid_returning_null_for_future
diff --git a/lib/src/rules/avoid_returning_null_for_future.dart b/lib/src/rules/avoid_returning_null_for_future.dart index 8997353..2de2a77 100644 --- a/lib/src/rules/avoid_returning_null_for_future.dart +++ b/lib/src/rules/avoid_returning_null_for_future.dart
@@ -74,7 +74,7 @@ throw StateError('unexpected type'); } if (returnType != null && returnType.isDartAsyncFuture && !isAsync) { - rule.reportLint(node); + rule.reportLint(expression); } } }