Fix trivial lint issues in translation tools

Indentation, missing semicolon, etc.
This commit is contained in:
Pierre Ossman
2019-08-15 15:51:43 +02:00
parent 604edf07d2
commit 776024a008
2 changed files with 11 additions and 11 deletions

View File

@@ -22,17 +22,17 @@ const fs = require('fs');
const po2json = require("po2json");
const opt = getopt.create([
['h' , 'help' , 'display this help'],
['h', 'help', 'display this help'],
]).bindHelp().parseSystem();
if (opt.argv.length != 2) {
console.error("Incorrect number of arguments given");
process.exit(1);
console.error("Incorrect number of arguments given");
process.exit(1);
}
const data = po2json.parseFileSync(opt.argv[0]);
const bodyPart = Object.keys(data).filter((msgid) => msgid !== "").map((msgid) => {
const bodyPart = Object.keys(data).filter(msgid => msgid !== "").map((msgid) => {
if (msgid === "") return;
const msgstr = data[msgid][1];
return " " + JSON.stringify(msgid) + ": " + JSON.stringify(msgstr);