refactor: remove unnecessary wrapper

v1.18.x
Barış Soner Uşaklı 4 years ago
parent f0131e72ae
commit a512d99472

@ -22,19 +22,7 @@
};
}
function loadServer(language, namespace) {
return new Promise(function (resolve, reject) {
languages.get(language, namespace, function (err, data) {
if (err) {
reject(err);
} else {
resolve(data);
}
});
});
}
module.exports = factory(require('../utils'), loadServer, warn);
module.exports = factory(require('../utils'), languages.get, warn);
}());
}
}(function (utils, load, warn) {

Loading…
Cancel
Save