use const instead of let
This commit is contained in:
parent
9473e419b4
commit
f144934cd7
|
@ -201,7 +201,7 @@ export class Patcher {
|
||||||
unpatch: () => {
|
unpatch: () => {
|
||||||
patch.children.splice(patch.children.findIndex(cpatch => cpatch.id === child.id && cpatch.type === type), 1);
|
patch.children.splice(patch.children.findIndex(cpatch => cpatch.id === child.id && cpatch.type === type), 1);
|
||||||
if (patch.children.length <= 0) {
|
if (patch.children.length <= 0) {
|
||||||
let patchNum = this.patches.findIndex(p => p.module == module && p.functionName == functionName);
|
const patchNum = this.patches.findIndex(p => p.module == module && p.functionName == functionName);
|
||||||
this.patches[patchNum].revert();
|
this.patches[patchNum].revert();
|
||||||
this.patches.splice(patchNum, 1);
|
this.patches.splice(patchNum, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue