mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
Remove usage of ++ outside of for loops update
The usage of postfix ++ is somewhat obscure in its meaning. It's better to be explicit here.
This commit is contained in:
1 parent
3ce32ba870
commit
5337280eec
8 files changed
+21
-14
No files matched your search
@@ -46,7 +46,7 @@ describe("global_chat plugin", function() {
|
||||
instancePlugin.instance.connector.sentMessages = [];
|
||||
await instancePlugin.onOutput(output);
|
||||
assert(instancePlugin.instance.connector.sentMessages.length, "message was not sent");
|
||||
count++;
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
assert(count > 0, "no lines were tested");
|
||||
@@ -58,7 +58,7 @@ describe("global_chat plugin", function() {
|
||||
instancePlugin.instance.connector.sentMessages = [];
|
||||
await instancePlugin.onOutput(output);
|
||||
assert(!instancePlugin.instance.connector.sentMessages.length, "message was sent");
|
||||
count++;
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
assert(count > 0, "no lines were tested");
|
||||
|
||||
Reference in new issue
Block a user