remove double negation

This commit is contained in:
Bruno Windels 2020-09-25 10:44:19 +02:00
parent a7ceabad37
commit 7f0d36cf79

View file

@ -120,7 +120,7 @@ export class Sync {
}
} catch (err) {
this._status.set(SyncStatus.Stopped);
if (!(err instanceof AbortError)) {
if (err.name !== AbortError) {
console.warn("stopping sync because of error");
console.error(err);
this._error = err;