Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Refactoring

Aman Raj Singh Mourya24759a3923e5
diff --git a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
index 5b83caeb7c..4fa1644d08 100644
--- a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
+++ b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
@@ -111,9 +111,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
? IconType.simpleIcon
: IconType.customIcon;
- widget.code == null
- ? _algorithm = Algorithm.sha1
- : _algorithm = widget.code!.algorithm;
+ _algorithm = widget.code == null ? Algorithm.sha1 : widget.code!.algorithm;
super.initState();
}