Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit bc68846

Browse files
authored
[camera] Ignore body_might_complete_normally_catch_error violation (#5957)
1 parent ec8a69b commit bc68846

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/camera/camera_platform_interface/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## NEXT
22

33
* Ignores unnecessary import warnings in preparation for [upcoming Flutter changes](https://github.com/flutter/flutter/pull/104231).
4+
* Ignores missing return warnings in preparation for [upcoming analysis changes](https://github.com/flutter/flutter/issues/105750).
45

56
## 2.2.0
67

packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ class MethodChannelCamera extends CameraPlatform {
130130
'cameraId': cameraId,
131131
'imageFormatGroup': imageFormatGroup.name(),
132132
},
133-
).catchError(
133+
)
134+
// TODO(srawlins): This should return a value of the future's type. This
135+
// will fail upcoming analysis checks with
136+
// https://github.com/flutter/flutter/issues/105750.
137+
// ignore: body_might_complete_normally_catch_error
138+
.catchError(
134139
(Object error, StackTrace stackTrace) {
135140
if (error is! PlatformException) {
136141
throw error;

0 commit comments

Comments
 (0)