Fix lint issues

This commit is contained in:
Björn Dahlgren 2023-07-21 18:44:44 +02:00
parent b3574552e2
commit 5689fca2a0
3 changed files with 1 additions and 4 deletions

View File

@ -56,7 +56,7 @@ Mods.prototype.resolveModData = function (modPath, cb) {
var self = this
async.parallel({
folderSize: function (cb) {
var basePath = path.resolve(config.path, modPath)
var basePath = path.resolve(self.config.path, modPath)
folderSize(basePath, cb)
},
modFile: function (cb) {

View File

@ -2,7 +2,6 @@ var async = require('async')
var events = require('events')
var filesize = require('filesize')
var fs = require('fs.extra')
var filesize = require('filesize')
var glob = require('glob')
var path = require('path')
@ -55,7 +54,6 @@ Mods.prototype.updateMods = function () {
}
Mods.prototype.resolveModData = function (serverDataPath, cb) {
var self = this
var serverDataFile = path.join(this.workshopPath(), serverDataPath)
var modPath = path.dirname(serverDataFile)
async.parallel({

View File

@ -208,7 +208,6 @@ Server.prototype.start = function () {
Server.prototype.stop = function (cb) {
var handled = false
var self = this
var finalHandler = function () {
if (!handled) {