Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit bd8fcca

Browse files
fix(database): remove impossible condition
an empty string will not equal undefined
1 parent f529543 commit bd8fcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class AngularFireOfflineDatabase {
225225
const refItems: string[] = cacheItem.ref.split('/');
226226
refItems.pop();
227227
const potentialListRef: string = refItems.join('/');
228-
if (potentialListRef !== undefined) {
228+
if (potentialListRef) {
229229
// Add
230230
if (!(potentialListRef in this.emulateQue)) {
231231
this.emulateQue[potentialListRef] = [];

0 commit comments

Comments
 (0)