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

View file

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