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

+1 -1
View File
@@ -49,7 +49,7 @@ class neuralDole {
this.getRequestStats(name,5)
);
this.stats[name]=this.stats[name] || [];
this.stats[name].unshift({req:0,given:0});//stats[name][0] is the one we currently collect
this.stats[name].unshift({ req:0,given:0 });//stats[name][0] is the one we currently collect
if (this.stats[name].length>10) this.stats[name].pop();//remove if too many samples in stats
this.dole[name] = magicData[0];
+1 -1
View File
@@ -116,4 +116,4 @@ outputs[1]=sigmoid3(outputs[1]);
return [sigmoid0(outputs[0]),avg];
}
module.exports = {Dose,Tick};
module.exports = { Dose,Tick };
+1 -1
View File
@@ -136,7 +136,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
} else if (method === "dole") {
for (let item of message.data.items) {
let count = dole.doleDivider({
object: { name: item[0], count: item[1], instanceId, instanceName},
object: { name: item[0], count: item[1], instanceId, instanceName },
items: this.items,
logItemTransfers: this.master.config.get("subspace_storage.log_item_transfers"),
});