forked from mystiq/hydrogen-web
Add comment
This commit is contained in:
parent
2d8b719ab0
commit
39d0708cca
1 changed files with 2 additions and 1 deletions
|
@ -154,7 +154,8 @@ export class IDBLogger extends BaseLogger {
|
|||
for (const item of items) {
|
||||
const queuedIdx = this._queuedItems.findIndex(i => i.id === item.id);
|
||||
if (queuedIdx === -1) {
|
||||
logs.delete(item.id);
|
||||
// todo: isn't id optional? do we need further checks here
|
||||
logs.delete(item.id!); // resolve questionable use of non-null assertion operator?
|
||||
} else {
|
||||
this._queuedItems.splice(queuedIdx, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue