mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -27,7 +27,7 @@ function setup(initConfig) {
|
||||
return await install.setup();
|
||||
},
|
||||
function (next) {
|
||||
var configFile = paths.config;
|
||||
let configFile = paths.config;
|
||||
if (nconf.get('config')) {
|
||||
configFile = path.resolve(paths.baseDir, nconf.get('config'));
|
||||
}
|
||||
@@ -44,9 +44,9 @@ function setup(initConfig) {
|
||||
// Disregard build step data
|
||||
data = data[0];
|
||||
|
||||
var separator = ' ';
|
||||
let separator = ' ';
|
||||
if (process.stdout.columns > 10) {
|
||||
for (var x = 0, cols = process.stdout.columns - 10; x < cols; x += 1) {
|
||||
for (let x = 0, cols = process.stdout.columns - 10; x < cols; x += 1) {
|
||||
separator += '=';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user