Skip to content

Commit 3ad6720

Browse files
committed
chore: lint
1 parent b0be119 commit 3ad6720

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

server/distribute/import.mjs

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,15 @@ export const distributeImport = (config, options, fn) => {
105105
const onConnect = emitAuth(importUrl, config, socket);
106106
const onAccept = logWrapped(isLog, importStr, `${connectedStr} to ${colorUrl}`);
107107

108-
const onDisconnect = squad(
109-
done(
110-
fn,
111-
statusStore,
112-
),
113-
logWrapped(
114-
isLog,
115-
importStr,
116-
`${disconnectedStr} from ${colorUrl}`,
117-
),
118-
rmListeners(
119-
socket,
120-
{
121-
onError,
122-
onConnect,
123-
onConfig,
124-
},
125-
),
126-
);
108+
const onDisconnect = squad(...[
109+
done(fn, statusStore),
110+
logWrapped(isLog, importStr, `${disconnectedStr} from ${colorUrl}`),
111+
rmListeners(socket, {
112+
onError,
113+
onConnect,
114+
onConfig,
115+
}),
116+
]);
127117

128118
const onChange = squad(logWrapped(isLog, importStr), config);
129119

0 commit comments

Comments
 (0)