mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Fix lint issues
This commit is contained in:
parent
b3574552e2
commit
5689fca2a0
@ -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) {
|
||||
|
@ -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({
|
||||
|
@ -208,7 +208,6 @@ Server.prototype.start = function () {
|
||||
|
||||
Server.prototype.stop = function (cb) {
|
||||
var handled = false
|
||||
var self = this
|
||||
|
||||
var finalHandler = function () {
|
||||
if (!handled) {
|
||||
|
Loading…
Reference in New Issue
Block a user