From cf37f52093e766fb47702db6586919f3ef00b963 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 17 Feb 2021 15:03:30 +0000 Subject: [PATCH] lint: collab_client.js --- src/static/js/collab_client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/collab_client.js b/src/static/js/collab_client.js index abe3911d4..d2b9c402f 100644 --- a/src/static/js/collab_client.js +++ b/src/static/js/collab_client.js @@ -34,7 +34,7 @@ const getSocket = () => pad && pad.socket; /** Call this when the document is ready, and a new Ace2Editor() has been created and inited. ACE's ready callback does not need to have fired yet. "serverVars" are from calling doc.getCollabClientVars() on the server. */ -function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad) { +const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad) => { const editor = ace2editor; pad = _pad; // Inject pad to avoid a circular dependency. @@ -583,6 +583,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad) setUpSocket(); return self; -} +}; exports.getCollabClient = getCollabClient;