From a9ba166bd4aba1ad1a83850b731026d80acf1ba0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 17 Feb 2020 17:17:16 +0200 Subject: [PATCH] chore(cloudcmd) lint: remove useless arguments --- .gitignore | 1 + .madrun.js | 2 +- client/client.js | 2 +- server/config.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c629c5b4..e5ad5994 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ modules/emitify .nyc_output *.swp +.putoutcache dist dist-dev diff --git a/.madrun.js b/.madrun.js index 422b1e5c..ed82e78c 100644 --- a/.madrun.js +++ b/.madrun.js @@ -40,7 +40,7 @@ module.exports = { 'lint:css': () => 'stylelint css/*.css', 'spell': () => 'yaspeller .', 'fix:lint': () => run(['lint', 'lint:css'], '--fix'), - 'lint': () => run('lint:progress'), + 'lint': () => run('lint:progress', '--cache'), 'lint:progress': () => run('lint:base', '-f progress'), 'lint:stream': () => run('lint:base', '-f stream'), diff --git a/client/client.js b/client/client.js index 18f9755d..b9e6bfce 100644 --- a/client/client.js +++ b/client/client.js @@ -339,7 +339,7 @@ function CloudCmdProto(DOM) { const {noCurrent} = options; if (!isRefresh && json) - return await createFileTable(json, panel, options, callback); + return await createFileTable(json, panel, options); const position = DOM.getPanelPosition(panel); const sort = CloudCmd.sort[position]; diff --git a/server/config.js b/server/config.js index bba94351..d9652eac 100644 --- a/server/config.js +++ b/server/config.js @@ -168,7 +168,7 @@ function _middle(manage, req, res, next) { switch(req.method) { case 'GET': - get(manage, req, res, next); + get(manage, req, res); break; case 'PATCH':