mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Apply suggestions from code review
- Copy paste errors. - Incorrect capitalisation. - Incorrect exports. - Missed find and replace. Co-authored-by: Hornwitser <github@hornwitser.no>
This commit is contained in:
1 parent
8fbdb5dfab
commit
3423e0a30c
5 files changed
+14
-18
No files matched your search
@@ -19,7 +19,7 @@ class PluginExampleEvent {
|
||||
"myNumberArray": Type.Array(Type.Number()),
|
||||
});
|
||||
|
||||
static fromJson(json) {
|
||||
static fromJSON(json) {
|
||||
return new PluginExampleEvent(json.myString, json.myNumberArray);
|
||||
}
|
||||
}
|
||||
@@ -41,8 +41,8 @@ class PluginExampleRequest {
|
||||
"myNumberArray": Type.Array(Type.Number()),
|
||||
});
|
||||
|
||||
static fromJson(json) {
|
||||
return new PluginExampleEvent(json.myString, json.myNumberArray);
|
||||
static fromJSON(json) {
|
||||
return new PluginExampleRequest(json.myString, json.myNumberArray);
|
||||
}
|
||||
|
||||
static Response = plainJson(Type.Object({
|
||||
|
||||
Reference in new issue
Block a user