From 8472bde5dd82a4fe826ff2ba98984391afa0af29 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 27 Apr 2025 20:50:59 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary null check on auth (2/2) (#3661) Co-authored-by: github-actions --- src/locales/en/main.json | 1 - src/locales/es/main.json | 1 - src/locales/fr/main.json | 1 - src/locales/ja/main.json | 1 - src/locales/ko/main.json | 1 - src/locales/ru/main.json | 1 - src/locales/zh/main.json | 1 - src/stores/firebaseAuthStore.ts | 5 ----- 8 files changed, 12 deletions(-) diff --git a/src/locales/en/main.json b/src/locales/en/main.json index 25eadd65e..95e2d3957 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -1081,7 +1081,6 @@ "failedToFetchLogs": "Failed to fetch server logs", "migrateToLitegraphReroute": "Reroute nodes will be removed in future versions. Click to migrate to litegraph-native reroute.", "userNotAuthenticated": "User not authenticated", - "firebaseAuthNotInitialized": "Firebase Auth not initialized", "failedToFetchBalance": "Failed to fetch balance: {error}", "failedToCreateCustomer": "Failed to create customer: {error}", "failedToInitiateCreditPurchase": "Failed to initiate credit purchase: {error}", diff --git a/src/locales/es/main.json b/src/locales/es/main.json index 39f1ff841..baa387ef4 100644 --- a/src/locales/es/main.json +++ b/src/locales/es/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "No se pudo comprar créditos: {error}", "fileLoadError": "No se puede encontrar el flujo de trabajo en {fileName}", "fileUploadFailed": "Error al subir el archivo", - "firebaseAuthNotInitialized": "Firebase Auth no está inicializado", "interrupted": "La ejecución ha sido interrumpida", "migrateToLitegraphReroute": "Los nodos de reroute se eliminarán en futuras versiones. Haz clic para migrar a reroute nativo de litegraph.", "no3dScene": "No hay escena 3D para aplicar textura", diff --git a/src/locales/fr/main.json b/src/locales/fr/main.json index 638b3152a..10f1207b5 100644 --- a/src/locales/fr/main.json +++ b/src/locales/fr/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "Échec de l'achat de crédits : {error}", "fileLoadError": "Impossible de trouver le flux de travail dans {fileName}", "fileUploadFailed": "Échec du téléchargement du fichier", - "firebaseAuthNotInitialized": "Authentification Firebase non initialisée", "interrupted": "L'exécution a été interrompue", "migrateToLitegraphReroute": "Les nœuds de reroute seront supprimés dans les futures versions. Cliquez pour migrer vers le reroute natif de litegraph.", "no3dScene": "Aucune scène 3D pour appliquer la texture", diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 8ac6c81b6..c58a65458 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "クレジットの購入に失敗しました: {error}", "fileLoadError": "{fileName}でワークフローが見つかりません", "fileUploadFailed": "ファイルのアップロードに失敗しました", - "firebaseAuthNotInitialized": "Firebase認証が初期化されていません", "interrupted": "実行が中断されました", "migrateToLitegraphReroute": "将来のバージョンではRerouteノードが削除されます。litegraph-native rerouteに移行するにはクリックしてください。", "no3dScene": "テクスチャを適用する3Dシーンがありません", diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index 776f4ebaf..76075175d 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "크레딧 구매에 실패했습니다: {error}", "fileLoadError": "{fileName}에서 워크플로우를 찾을 수 없습니다", "fileUploadFailed": "파일 업로드에 실패했습니다", - "firebaseAuthNotInitialized": "Firebase 인증이 초기화되지 않았습니다", "interrupted": "실행이 중단되었습니다", "migrateToLitegraphReroute": "향후 버전에서는 Reroute 노드가 제거됩니다. LiteGraph 에서 자체 제공하는 경유점으로 변환하려면 클릭하세요.", "no3dScene": "텍스처를 적용할 3D 장면이 없습니다", diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index edcc9a870..717fbe622 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "Не удалось купить кредиты: {error}", "fileLoadError": "Не удалось найти рабочий процесс в {fileName}", "fileUploadFailed": "Не удалось загрузить файл", - "firebaseAuthNotInitialized": "Firebase Auth не инициализирован", "interrupted": "Выполнение было прервано", "migrateToLitegraphReroute": "Узлы перенаправления будут удалены в будущих версиях. Нажмите, чтобы перейти на litegraph-native reroute.", "no3dScene": "Нет 3D сцены для применения текстуры", diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index 4cd6e7472..6f7dc95bf 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -1121,7 +1121,6 @@ "failedToPurchaseCredits": "购买积分失败:{error}", "fileLoadError": "无法在 {fileName} 中找到工作流", "fileUploadFailed": "文件上传失败", - "firebaseAuthNotInitialized": "Firebase 认证未初始化", "interrupted": "执行已被中断", "migrateToLitegraphReroute": "将来的版本中将删除重定向节点。点击以迁移到litegraph-native重定向。", "no3dScene": "没有3D场景可以应用纹理", diff --git a/src/stores/firebaseAuthStore.ts b/src/stores/firebaseAuthStore.ts index 9f9a905cb..6af7f16d2 100644 --- a/src/stores/firebaseAuthStore.ts +++ b/src/stores/firebaseAuthStore.ts @@ -163,11 +163,6 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => { createCustomer?: boolean } = {} ): Promise => { - if (!auth) - throw new FirebaseAuthStoreError( - t('toastMessages.firebaseAuthNotInitialized') - ) - loading.value = true try {