mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Fixed invalid callback
This commit is contained in:
parent
dd8ec19848
commit
b87e327d81
@ -30,7 +30,7 @@ Mods.prototype.updateMods = function () {
|
|||||||
var self = this;
|
var self = this;
|
||||||
fs.readdir(self.config.path, function (err, files) {
|
fs.readdir(self.config.path, function (err, files) {
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
console.log(err);
|
||||||
} else {
|
} else {
|
||||||
var mods = files.filter(function (file) {
|
var mods = files.filter(function (file) {
|
||||||
return file.charAt(0) == "@";
|
return file.charAt(0) == "@";
|
||||||
|
Loading…
Reference in New Issue
Block a user