use const instead of let

This commit is contained in:
Zack Rauen 2018-08-09 01:01:32 -04:00
parent 9473e419b4
commit f144934cd7
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ export class Patcher {
unpatch: () => {
patch.children.splice(patch.children.findIndex(cpatch => cpatch.id === child.id && cpatch.type === type), 1);
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.splice(patchNum, 1);
}