From 7f0d36cf79f7e294a988070ccda7d0fb79da1b0a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 25 Sep 2020 10:44:19 +0200 Subject: [PATCH] remove double negation --- src/matrix/Sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 02d4f8b2..678578e1 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -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;