diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-08-15 15:51:43 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-08-15 15:58:09 +0200 |
commit | 776024a008689549b089b3578a673fce03b514fd (patch) | |
tree | c9afbcca608b65f7fd7ac7d9f0b77fab15f883ac /po/po2js | |
parent | 604edf07d23345c8adf96527995323473a3baace (diff) | |
download | novnc-776024a008689549b089b3578a673fce03b514fd.tar.gz |
Fix trivial lint issues in translation tools
Indentation, missing semicolon, etc.
Diffstat (limited to 'po/po2js')
-rwxr-xr-x | po/po2js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |