From 2e2f191d087c96e179f92b340be6f6198c56a1fc Mon Sep 17 00:00:00 2001 From: Tyler-Larkin Date: Mon, 13 Jan 2025 10:02:59 -0800 Subject: [PATCH] chore(datastore,authenticator,common): fixed linter errors --- .../amplify_datastore/lib/src/utils/native_api_helpers.dart | 1 - .../lib/src/screens/authenticator_screen.dart | 1 - packages/aws_common/lib/src/http/aws_http_client_js.dart | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart b/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart index f6f70ea050..cfdaf14fc3 100644 --- a/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart +++ b/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart @@ -2,7 +2,6 @@ import 'dart:convert'; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_datastore/src/native_plugin.g.dart'; -import 'package:collection/collection.dart'; /// Convert a [NativeGraphQLResponse] to a [GraphQLResponse] GraphQLRequest nativeRequestToGraphQLRequest( diff --git a/packages/authenticator/amplify_authenticator/lib/src/screens/authenticator_screen.dart b/packages/authenticator/amplify_authenticator/lib/src/screens/authenticator_screen.dart index 2524d2cb35..58f6e4a3db 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/screens/authenticator_screen.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/screens/authenticator_screen.dart @@ -192,7 +192,6 @@ class _FormWrapperView extends StatelessAuthenticatorComponent { form, ], ); - break; } return Padding(padding: padding, child: layout); diff --git a/packages/aws_common/lib/src/http/aws_http_client_js.dart b/packages/aws_common/lib/src/http/aws_http_client_js.dart index 9a4da6375e..1cc642e70b 100644 --- a/packages/aws_common/lib/src/http/aws_http_client_js.dart +++ b/packages/aws_common/lib/src/http/aws_http_client_js.dart @@ -71,7 +71,7 @@ class AWSHttpClientImpl extends AWSHttpClient { requestProgressController.close(); }, ).takeUntil(cancelTrigger.future); - Object body = Uint8List.fromList(await collectBytes(stream)); + final body = Uint8List.fromList(await collectBytes(stream)); if (completer.isCanceled) return; final resp = await fetch(