Skip to content

Commit b61e229

Browse files
committed
Issue 41065. Remove unnecessary null workaround.
Bug: #41065 Change-Id: I328b334fbdf4d4c77453cca56ae0c42ae43e8ee3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155822 Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 9282f1b commit b61e229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/analyzer/lib/src/dart/resolver/invocation_inference_helper.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ class InvocationInferenceHelper {
4545
/// type that is being invoked.
4646
DartType computeInvokeReturnType(DartType type) {
4747
if (type is FunctionType) {
48-
// TODO(scheglov) https://github.com/dart-lang/sdk/issues/41065
49-
return type.returnType ?? DynamicTypeImpl.instance;
48+
return type.returnType;
5049
} else {
5150
return DynamicTypeImpl.instance;
5251
}

0 commit comments

Comments
 (0)