lint: fix errors and unfinished bits to now be finished

This commit is contained in:
John McLear 2021-01-19 20:43:45 +00:00
parent b18a0e48da
commit 3e78be371d
2 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
'use strict';
const log4js = require('log4js');
const plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
const hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
const plugins = require('./plugins');
const hooks = require('./hooks');
const npm = require('npm');
const request = require('request');
const util = require('util');
@ -24,8 +24,8 @@ let tasks = 0;
function wrapTaskCb(cb) {
tasks++;
return function (...arguments) {
cb && cb.apply(this, arguments);
return function (...args) {
cb && cb.apply(this, args);
tasks--;
if (tasks === 0) onAllTasksFinished();
};

View file

@ -1,4 +1,4 @@
'use strict'
'use strict';
// A copy of npm/lib/utils/read-installed.js
// that is hacked to not cache everything :)
@ -252,7 +252,7 @@ const resolveInheritance = (obj) => {
// find unmet deps by walking up the tree object.
// No I/O
const fuSeen = [];
const findUnmet = obj => {
const findUnmet = (obj) => {
if (typeof obj === 'string') return;
if (fuSeen.indexOf(obj) !== -1) return;
fuSeen.push(obj);
@ -298,7 +298,7 @@ const copy = (obj) => {
if (Object.prototype.hasOwnProperty.call(obj, i)) {
o[i] = copy(obj[i]);
}
};
}
return o;
};