From 596fa195b601985efa38d6fb7ca149a175115937 Mon Sep 17 00:00:00 2001 From: Aryeh Hillman Date: Sat, 11 Jul 2020 21:15:09 -0700 Subject: [PATCH] Remove redundant `admin.initializeApp();` Call --- firestore/main/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firestore/main/index.js b/firestore/main/index.js index 58b4c66e..21fd4f49 100644 --- a/firestore/main/index.js +++ b/firestore/main/index.js @@ -23,7 +23,6 @@ async function initializeApp() { async function initializeAppFunctions() { process.env.GCLOUD_PROJECT = 'firestorebeta1test2'; // [START initialize_app_functions] - const admin = require('firebase-admin'); admin.initializeApp(); const db = admin.firestore(); @@ -1097,4 +1096,4 @@ describe('Firestore Smoketests', () => { it('should find all museums when querying a collection group', () => { return collectionGroupQuery(db); }); -}); \ No newline at end of file +});