codestyle fix

This commit is contained in:
yuri
2017-12-07 17:25:12 +02:00
parent b6bcb75dcf
commit 78939a7152
+2 -9
View File
@@ -38,15 +38,12 @@ var PO = require('pofile');
var isWin = /^win/.test(os.platform());
var espoPath = path.dirname(fs.realpathSync(__filename)) + '';
var resLang = process.argv[2] || 'lang_LANG';
var poPath = process.argv[3] || espoPath + '/build/' + 'espocrm-' + resLang +'.po';
var deleteFolderRecursive = function (path) {
var files = [];
if( fs.existsSync(path) ) {
if (fs.existsSync(path)) {
files = fs.readdirSync(path);
files.forEach(function(file,index){
var curPath = path + "/" + file;
@@ -60,7 +57,6 @@ var deleteFolderRecursive = function (path) {
}
};
function Lang (poPath, espoPath) {
this.poPath = poPath;
@@ -128,7 +124,6 @@ Lang.prototype.run = function () {
translationData[file].push(o);
});
dirs.forEach(function (path) {
var resDirPath = this.dirNames[path];
var resPath = this.currentPath + 'build/' + resLang + '/' + resDirPath;
@@ -247,9 +242,7 @@ Lang.prototype.run = function () {
}, this);
}.bind(this))
};
var lang = new Lang(poPath, espoPath);
lang.run();
lang.run();