Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit fcd634f

Browse files
committed
Remove un-needed check
1 parent 078790f commit fcd634f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/modifiers/apexCustomModifier.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ export const ApexCustomModifier: IModifier<string, string> = (asset: IAsset<stri
88
Object.keys(regexes).forEach(regexkey => {
99
const reg = new RegExp(regexkey, 'g');
1010
const matches = reg.exec(asset.data);
11-
if (matches) {
12-
if (matches.length == 1) {
13-
asset.data = asset.data.replace(reg, regexes[regexkey]);
14-
}
11+
if (matches && matches.length == 1) {
12+
asset.data = asset.data.replace(reg, regexes[regexkey]);
1513
}
1614
});
1715

0 commit comments

Comments
 (0)