*Fix for loop iteration

This commit is contained in:
Derrick Hammer 2022-08-28 02:49:48 -04:00
parent 61e10d8121
commit 6283e8c1b1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,10 @@ export class RPCServer {
public getMethods(): string[] {
const methods = [];
for (const module in this.methods) {
for (const method in this.methods.get(module)) {
for (const module of this.methods.keys()) {
for (const method of (
this.methods.get(module) as Map<string, RPCMethod>
).keys()) {
methods.push(`${module}.${method}`);
}
}