Skip to content

Commit

Permalink
[camera] Ignore body_might_complete_normally_catch_error violation (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins authored and mauricioluz committed Jan 26, 2023
1 parent c611470 commit 9541e53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/camera/camera_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

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

## 2.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ class MethodChannelCamera extends CameraPlatform {
'cameraId': cameraId,
'imageFormatGroup': imageFormatGroup.name(),
},
).catchError(
)
// TODO(srawlins): This should return a value of the future's type. This
// will fail upcoming analysis checks with
// https://github.com/flutter/flutter/issues/105750.
// ignore: body_might_complete_normally_catch_error
.catchError(
(Object error, StackTrace stackTrace) {
if (error is! PlatformException) {
throw error;
Expand Down

0 comments on commit 9541e53

Please sign in to comment.