mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update JS style config, and code to match
This commit is contained in:
+3
-1
@@ -1,4 +1,6 @@
|
||||
/* Convert .po files to .mo files. */
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
'use strict';
|
||||
const childProcess = require('child_process');
|
||||
const fs = require('fs');
|
||||
@@ -12,7 +14,7 @@ function getMsgfmtPath() {
|
||||
path.join('/', 'usr', 'bin', 'msgfmt'),
|
||||
];
|
||||
|
||||
for (let i = 0; i < paths.length; ++i) {
|
||||
for (let i = 0; i < paths.length; i += 1) {
|
||||
if (helpers.fileExists(paths[i])) {
|
||||
return paths[i];
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env node
|
||||
// Build the UI's index.html file. Takes one argument, which is the path to the
|
||||
// repository's root.
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
'use strict';
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
Reference in New Issue
Block a user