mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: lint
This commit is contained in:
parent
b0be119474
commit
3ad6720f5f
1 changed files with 9 additions and 19 deletions
|
|
@ -105,25 +105,15 @@ export const distributeImport = (config, options, fn) => {
|
|||
const onConnect = emitAuth(importUrl, config, socket);
|
||||
const onAccept = logWrapped(isLog, importStr, `${connectedStr} to ${colorUrl}`);
|
||||
|
||||
const onDisconnect = squad(
|
||||
done(
|
||||
fn,
|
||||
statusStore,
|
||||
),
|
||||
logWrapped(
|
||||
isLog,
|
||||
importStr,
|
||||
`${disconnectedStr} from ${colorUrl}`,
|
||||
),
|
||||
rmListeners(
|
||||
socket,
|
||||
{
|
||||
onError,
|
||||
onConnect,
|
||||
onConfig,
|
||||
},
|
||||
),
|
||||
);
|
||||
const onDisconnect = squad(...[
|
||||
done(fn, statusStore),
|
||||
logWrapped(isLog, importStr, `${disconnectedStr} from ${colorUrl}`),
|
||||
rmListeners(socket, {
|
||||
onError,
|
||||
onConnect,
|
||||
onConfig,
|
||||
}),
|
||||
]);
|
||||
|
||||
const onChange = squad(logWrapped(isLog, importStr), config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue