From 961b51fd9a2908267ca12756f5db6a59b64292f1 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Thu, 11 Aug 2022 18:43:59 -0500 Subject: [PATCH] removed false check since db key will be resolved in every case here --- squarenotsquare/src/realm/DbInit.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/squarenotsquare/src/realm/DbInit.js b/squarenotsquare/src/realm/DbInit.js index d67ac30..6ab35b5 100644 --- a/squarenotsquare/src/realm/DbInit.js +++ b/squarenotsquare/src/realm/DbInit.js @@ -29,10 +29,8 @@ export async function initDB(dbKeyRef = 'squareDB', dbLocation = Realm.defaultPa } let dbKey = new Uint8Array(64); - if (fromStore !== false){ - for (let i = 0; i < 64; ++i){ - dbKey[i] = fromStore.charAt(i); - } + for (let i = 0; i < 64; ++i){ + dbKey[i] = fromStore.charAt(i); } let dbRef = null;