mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
lint: fix errors and unfinished bits to now be finished
This commit is contained in:
parent
b18a0e48da
commit
3e78be371d
2 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
@ -295,10 +295,10 @@ const copy = (obj) => {
|
|||
|
||||
const o = {};
|
||||
for (const i in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, i)){
|
||||
if (Object.prototype.hasOwnProperty.call(obj, i)) {
|
||||
o[i] = copy(obj[i]);
|
||||
}
|
||||
};
|
||||
}
|
||||
return o;
|
||||
};
|
||||
|
||||
|
@ -319,7 +319,7 @@ if (module === require.main) {
|
|||
if (seen.indexOf(map) !== -1) return;
|
||||
seen.push(map);
|
||||
for (const i in map) {
|
||||
if (Object.prototype.hasOwnProperty.call(map, i)){
|
||||
if (Object.prototype.hasOwnProperty.call(map, i)) {
|
||||
switch (i) {
|
||||
case '_id':
|
||||
case 'path':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue