Fix missing semicolons

Ensure all statements end with a semicolon.
This commit is contained in:
Hornwitser committed 2020-06-17 20:53:18 +02:00
1 parent 34aaeee354
commit 29f066a191
56 files changed
+242 -242

No files matched your search

+3 -3
View File
@@ -67,7 +67,7 @@ async function exec(...args) {
}
async function sendRcon(instanceId, command) {
let response = await link.messages.sendRcon.send(control, { instance_id: instanceId, command })
let response = await link.messages.sendRcon.send(control, { instance_id: instanceId, command });
return response.result;
}
@@ -86,8 +86,8 @@ function spawn(name, cmd, waitFor) {
resolve(process);
}
console.log(name, line);
})
let stderr = new server._LineSplitter((line) => { console.log(name, line.toString("utf8")); })
});
let stderr = new server._LineSplitter((line) => { console.log(name, line.toString("utf8")); });
process.stdout.on("data", chunk => { stdout.data(chunk); });
process.stdout.on("close", () => { stdout.end(); });
process.stderr.on("data", chunk => { stderr.data(chunk); });
+1 -1
View File
@@ -9,7 +9,7 @@ const { slowTest } = require("./index");
// The server integration test is required to run before this one
require("./server")
require("./server");
describe("Integration of lib/factorio/patch", function() {
describe("patch()", function() {
+1 -1
View File
@@ -149,7 +149,7 @@ describe("Integration of lib/factorio/server", function() {
slowTest(this);
log(".startScenario()");
let pass = false
let pass = false;
function filter(output) {
if (output.message === "test_scenario init") {
pass = true;