chore: remove the unused value in supabase_task (#3157)

This commit is contained in:
Lucas.Xu 2023-08-10 20:06:02 +07:00 committed by GitHub
parent 29c89013f0
commit 7701533ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,6 @@ import '../startup.dart';
const appflowyDeepLinkSchema = 'appflowy-flutter'; const appflowyDeepLinkSchema = 'appflowy-flutter';
const supabaseLoginCallback = '$appflowyDeepLinkSchema://login-callback'; const supabaseLoginCallback = '$appflowyDeepLinkSchema://login-callback';
bool isSupabaseInitialized = false;
const hiveBoxName = 'appflowy_supabase_authentication'; const hiveBoxName = 'appflowy_supabase_authentication';
// Used to store the session of the supabase in case of the user switch the different folder. // Used to store the session of the supabase in case of the user switch the different folder.
@ -31,10 +30,6 @@ class InitSupabaseTask extends LaunchTask {
return; return;
} }
if (isSupabaseInitialized) {
return;
}
// register deep link for Windows // register deep link for Windows
if (Platform.isWindows) { if (Platform.isWindows) {
registerProtocolHandler(appflowyDeepLinkSchema); registerProtocolHandler(appflowyDeepLinkSchema);