Use more consistent spacing in objects literals

This commit is contained in:
Hornwitser committed 2020-06-17 20:53:18 +02:00
1 parent 29f066a191
commit b254e4189d
17 files changed
+66 -66

No files matched your search

+2 -2
View File
@@ -248,7 +248,7 @@ async function exportItems(server, modVersions, items) {
iconSheet.crop(0, 0, width, Math.ceil(pos / (width / size)) * size);
return {iconSheet, itemData};
return { iconSheet, itemData };
}
/**
@@ -338,7 +338,7 @@ async function exportData(server) {
throw new Error("No items got exported");
}
let {iconSheet, itemData} = await exportItems(server, modVersions, items);
let { iconSheet, itemData } = await exportItems(server, modVersions, items);
let locale = await exportLocale(server, modVersions, modOrder, "en");
// Free up the memory used by zip files loaded during the export.
+1 -1
View File
@@ -282,7 +282,7 @@ async function patch(savePath, modules) {
root.file("clusterio.json", JSON.stringify(patchInfo, null, 4));
// Write back the save
let stream = zip.generateNodeStream({compression: "DEFLATE"});
let stream = zip.generateNodeStream({ compression: "DEFLATE" });
let pipe = stream.pipe(fs.createWriteStream(savePath));
await events.once(pipe, "finish");
}