@@ -98,7 +98,7 @@ export default class FirestoreDataManager extends Service {
98
98
await this . setupDocRealtimeUpdates ( modelName , docRef ) ;
99
99
}
100
100
101
- return this . docListeners [ listenerKey ] ? .snapshot ! ;
101
+ return this . docListeners [ listenerKey ] ! . snapshot ;
102
102
}
103
103
104
104
public async findAllRealtime (
@@ -111,7 +111,7 @@ export default class FirestoreDataManager extends Service {
111
111
await this . setupColRealtimeUpdates ( modelName , colRef ) ;
112
112
}
113
113
114
- return this . colListeners [ listenerKey ] ? .snapshot ! ;
114
+ return this . colListeners [ listenerKey ] ! . snapshot ;
115
115
}
116
116
117
117
public async queryRealtime (
@@ -122,7 +122,7 @@ export default class FirestoreDataManager extends Service {
122
122
let unsubscribe : Unsubscribe | undefined ;
123
123
124
124
if ( this . queryListeners [ queryId ] ) {
125
- unsubscribe = this . queryListeners [ queryId ] ? .unsubscribe ;
125
+ unsubscribe = this . queryListeners [ queryId ] ! . unsubscribe ;
126
126
delete this . queryListeners [ queryId ] ;
127
127
}
128
128
@@ -132,7 +132,7 @@ export default class FirestoreDataManager extends Service {
132
132
unsubscribe ( ) ;
133
133
}
134
134
135
- return this . queryListeners [ queryId ] ? .snapshots ! ;
135
+ return this . queryListeners [ queryId ] ! . snapshots ;
136
136
}
137
137
138
138
public async findHasManyRealtime (
@@ -143,7 +143,7 @@ export default class FirestoreDataManager extends Service {
143
143
let unsubscribe : Unsubscribe | undefined ;
144
144
145
145
if ( this . hasManyListeners [ queryId ] ) {
146
- unsubscribe = this . hasManyListeners [ queryId ] ? .unsubscribe ;
146
+ unsubscribe = this . hasManyListeners [ queryId ] ! . unsubscribe ;
147
147
delete this . hasManyListeners [ queryId ] ;
148
148
}
149
149
@@ -153,7 +153,7 @@ export default class FirestoreDataManager extends Service {
153
153
unsubscribe ( ) ;
154
154
}
155
155
156
- return this . hasManyListeners [ queryId ] ? .snapshots ! ;
156
+ return this . hasManyListeners [ queryId ] ! . snapshots ;
157
157
}
158
158
159
159
public async queryWithReferenceTo (
@@ -481,22 +481,22 @@ export default class FirestoreDataManager extends Service {
481
481
482
482
private destroyListener ( type : string , key : string ) : void {
483
483
if ( type === 'doc' && this . docListeners [ key ] ) {
484
- this . docListeners [ key ] ? .unsubscribe ( ) ;
484
+ this . docListeners [ key ] ! . unsubscribe ( ) ;
485
485
delete this . docListeners [ key ] ;
486
486
}
487
487
488
488
if ( type === 'col' && this . colListeners [ key ] ) {
489
- this . colListeners [ key ] ? .unsubscribe ( ) ;
489
+ this . colListeners [ key ] ! . unsubscribe ( ) ;
490
490
delete this . colListeners [ key ] ;
491
491
}
492
492
493
493
if ( type === 'query' && this . queryListeners [ key ] ) {
494
- this . queryListeners [ key ] ? .unsubscribe ( ) ;
494
+ this . queryListeners [ key ] ! . unsubscribe ( ) ;
495
495
delete this . queryListeners [ key ] ;
496
496
}
497
497
498
498
if ( type === 'hasMany' && this . hasManyListeners [ key ] ) {
499
- this . hasManyListeners [ key ] ? .unsubscribe ( ) ;
499
+ this . hasManyListeners [ key ] ! . unsubscribe ( ) ;
500
500
delete this . hasManyListeners [ key ] ;
501
501
}
502
502
}
0 commit comments