Indentation

This commit is contained in:
Samuel Elliott 2018-08-10 14:22:37 +01:00
parent dc3fed3408
commit 0aabc72652
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 12 additions and 12 deletions

View File

@ -42,8 +42,8 @@ export class Patcher {
const patches = [];
for (const patch of this.patches) {
for (const childPatch of patch.children) {
if (childPatch.caller === id) patches.push(childPatch);
}
if (childPatch.caller === id) patches.push(childPatch);
}
}
return patches;
}
@ -201,10 +201,10 @@ export class Patcher {
unpatch: () => {
patch.children.splice(patch.children.findIndex(cpatch => cpatch.id === child.id && cpatch.type === type), 1);
if (patch.children.length <= 0) {
const patchNum = this.patches.findIndex(p => p.module == module && p.functionName == functionName);
this.patches[patchNum].revert();
this.patches.splice(patchNum, 1);
}
const patchNum = this.patches.findIndex(p => p.module == module && p.functionName == functionName);
this.patches[patchNum].revert();
this.patches.splice(patchNum, 1);
}
}
};
patch.children.push(child);