Make function callbacks and returns more readable

This commit is contained in:
rejas
2021-02-06 22:55:59 +01:00
parent 4a11cdc564
commit 221eadcc20
2 changed files with 6 additions and 3 deletions

View File

@@ -107,7 +107,8 @@ var Translator = (function () {
Log.log(`${module.name} - Load translation${isFallback && " fallback"}: ${file}`);
if (this.translationsFallback[module.name]) {
return callback();
callback();
return;
}
loadJSON(module.file(file), (json) => {