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) { } catch (err) {
this._status.set(SyncStatus.Stopped); this._status.set(SyncStatus.Stopped);
if (!(err instanceof AbortError)) { if (err.name !== AbortError) {
console.warn("stopping sync because of error"); console.warn("stopping sync because of error");
console.error(err); console.error(err);
this._error = err; this._error = err;