Skip to content

Commit 3e2ce2c

Browse files
committed
fix: remove unnecessary snapshot check in RealtimeDbPersistenceProvider
1 parent 510ee5e commit 3e2ce2c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/persistence/RealtimeDbPersistenceProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export class RealtimeDbPersistenceProvider implements PersistenceProvider {
4141

4242
public async get(collectionName: string, recordName: string): Promise<PersistenceRecord> {
4343
const snapshot = await this.getDatabaseRef(collectionName, recordName).once("value");
44-
if (!snapshot) return this.createEmptyRecord();
4544

4645
const data = snapshot.val();
4746
if (data === null) return this.createEmptyRecord();

0 commit comments

Comments
 (0)