mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Prefer putting nested structures on new lines
Format arguments to have nested structures start on a new line instead of inline to make it easier to see where the structures starts and what structure it is.
This commit is contained in:
1 parent
cb21a63ac2
commit
156d517976
7 files changed
+130
-77
No files matched your search
+13
-9
@@ -52,15 +52,19 @@ class HostConnector extends libLink.WebSocketClientConnector {
|
||||
plugins[pluginInfo.name] = pluginInfo.version;
|
||||
}
|
||||
|
||||
this.sendHandshake(new libData.MessageRegisterHost(new libData.RegisterHostData(
|
||||
this.hostConfig.get("host.controller_token"),
|
||||
"Clusterio Host",
|
||||
version,
|
||||
this.hostConfig.get("host.name"),
|
||||
this.hostConfig.get("host.id"),
|
||||
this.hostConfig.get("host.public_address"),
|
||||
plugins,
|
||||
)));
|
||||
this.sendHandshake(
|
||||
new libData.MessageRegisterHost(
|
||||
new libData.RegisterHostData(
|
||||
this.hostConfig.get("host.controller_token"),
|
||||
"Clusterio Host",
|
||||
version,
|
||||
this.hostConfig.get("host.name"),
|
||||
this.hostConfig.get("host.id"),
|
||||
this.hostConfig.get("host.public_address"),
|
||||
plugins,
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user