forked from mystiq/hydrogen-web
no need for try catch here as we already catch in getKeys
This commit is contained in:
parent
ac5a4c2bc6
commit
498c00fe3c
1 changed files with 4 additions and 8 deletions
|
@ -201,15 +201,11 @@ export class Store<T> extends QueryTarget<T> {
|
||||||
}
|
}
|
||||||
reqAsPromise(request).catch(err => {
|
reqAsPromise(request).catch(err => {
|
||||||
let keys : IDBKey[] | undefined = undefined;
|
let keys : IDBKey[] | undefined = undefined;
|
||||||
try {
|
|
||||||
if (value) {
|
if (value) {
|
||||||
keys = this._getKeys(value);
|
keys = this._getKeys(value);
|
||||||
} else if (key) {
|
} else if (key) {
|
||||||
keys = [key];
|
keys = [key];
|
||||||
}
|
}
|
||||||
} catch (err) {
|
|
||||||
console.error("_getKeys failed", err);
|
|
||||||
}
|
|
||||||
this._transaction.addWriteError(err, log, operationName, keys);
|
this._transaction.addWriteError(err, log, operationName, keys);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue