Skip to content

Commit 9571c1e

Browse files
committed
Housekeeping
1 parent b5ef13f commit 9571c1e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

index.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ ipc.on("launchFactorio", function(event, data){
133133
}
134134
}
135135

136-
137136
// this causes error write_after_end, and it is kinda important but I have to leave it out
138137
//client.close(); // disconnect once we have connected because we are not actually going to rcon anything
139138
}).on('disconnected', function () {
@@ -142,11 +141,11 @@ ipc.on("launchFactorio", function(event, data){
142141
});
143142

144143
var download = function(url, dest, cb) {
145-
var file = fs.createWriteStream(dest);
146-
var request = http.get(url, function(response) {
147-
response.pipe(file);
148-
file.on('finish', function() {
149-
file.close(cb);
150-
});
151-
});
144+
var file = fs.createWriteStream(dest);
145+
var request = http.get(url, function(response) {
146+
response.pipe(file);
147+
file.on('finish', function() {
148+
file.close(cb);
149+
});
150+
});
152151
}

0 commit comments

Comments
 (0)