fix: don't try to decorate non-existent

This commit is contained in:
cha0s 2022-03-15 10:19:29 -05:00
parent 424fc4dae1
commit 0b8b8809a8

View File

@ -99,8 +99,10 @@ export default class Flecks {
); );
} }
const key = transformer(this.symbolizePath(path)); const key = transformer(this.symbolizePath(path));
// eslint-disable-next-line no-param-reassign if (Gathered[key]) {
Gathered[key] = M(Gathered[key], flecks); // eslint-disable-next-line no-param-reassign
Gathered[key] = M(Gathered[key], flecks);
}
}); });
return Gathered; return Gathered;
}; };