Skip to content

Commit 359be0c

Browse files
Apply Gemini error formatting suggestions in app-facing package
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent a9d6b2f commit 359be0c

File tree

1 file changed

+2
-2
lines changed
  • packages/local_auth/local_auth/example/lib

1 file changed

+2
-2
lines changed

packages/local_auth/local_auth/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class _MyAppState extends State<MyApp> {
9797
_isAuthenticating = false;
9898
if (e.code != LocalAuthExceptionCode.userCanceled &&
9999
e.code != LocalAuthExceptionCode.systemCanceled) {
100-
_authorized = 'Error - ${e.code.name}: ${e.description}';
100+
_authorized = 'Error - ${e.code.name}${e.description != null ? ': ${e.description}' : ''}';
101101
}
102102
});
103103
return;
@@ -141,7 +141,7 @@ class _MyAppState extends State<MyApp> {
141141
_isAuthenticating = false;
142142
if (e.code != LocalAuthExceptionCode.userCanceled &&
143143
e.code != LocalAuthExceptionCode.systemCanceled) {
144-
_authorized = 'Error - ${e.code.name}: ${e.description}';
144+
_authorized = 'Error - ${e.code.name}${e.description != null ? ': ${e.description}' : ''}';
145145
}
146146
});
147147
return;

0 commit comments

Comments
 (0)