Skip to content

Commit 6b48d12

Browse files
committed
fix: lint fix
1 parent 4252e75 commit 6b48d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/y-socket-io/y-socket-io.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class YSocketIO {
201201
;(async () => {
202202
assert(this.client)
203203
assert(socket.user)
204-
const doc = WORKER_DISABLED && this.namespaceDocMap.get(namespace) || (await this.client.getDoc(namespace, 'index'))
204+
const doc = (WORKER_DISABLED && this.namespaceDocMap.get(namespace)) || (await this.client.getDoc(namespace, 'index'))
205205
if (WORKER_DISABLED) this.namespaceDocMap.set(namespace, doc)
206206

207207
if (
@@ -247,7 +247,7 @@ export class YSocketIO {
247247
) => {
248248
assert(this.client)
249249
const namespace = this.getNamespaceString(socket.nsp)
250-
const doc = WORKER_DISABLED && this.namespaceDocMap.get(namespace) || (await this.client.getDoc(namespace, 'index'))
250+
const doc = (WORKER_DISABLED && this.namespaceDocMap.get(namespace)) || (await this.client.getDoc(namespace, 'index'))
251251
if (WORKER_DISABLED) this.namespaceDocMap.set(namespace, doc)
252252
assert(doc)
253253
syncStep2(Y.encodeStateAsUpdate(doc.ydoc, stateVector))

0 commit comments

Comments
 (0)