[camera] Move ignores for body_might_complete_normally_catch_error (#6339)
diff --git a/packages/camera/camera_android/lib/src/android_camera.dart b/packages/camera/camera_android/lib/src/android_camera.dart
index b02929e..3e9e52a 100644
--- a/packages/camera/camera_android/lib/src/android_camera.dart
+++ b/packages/camera/camera_android/lib/src/android_camera.dart
@@ -138,12 +138,11 @@
'cameraId': cameraId,
'imageFormatGroup': imageFormatGroup.name(),
},
- )
- // 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(
+ ).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
(Object error, StackTrace stackTrace) {
if (error is! PlatformException) {
throw error;
diff --git a/packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart b/packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart
index d4f9860..19054fe 100644
--- a/packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart
+++ b/packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart
@@ -138,12 +138,11 @@
'cameraId': cameraId,
'imageFormatGroup': imageFormatGroup.name(),
},
- )
- // 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(
+ ).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
(Object error, StackTrace stackTrace) {
if (error is! PlatformException) {
throw error;
diff --git a/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart b/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart
index fd9ad53..eb6e59d 100644
--- a/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart
+++ b/packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart
@@ -130,12 +130,11 @@
'cameraId': cameraId,
'imageFormatGroup': imageFormatGroup.name(),
},
- )
- // 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(
+ ).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
(Object error, StackTrace stackTrace) {
if (error is! PlatformException) {
throw error;