Skip to content

Commit 807bcb4

Browse files
feat: refactor group-helper
1 parent 00acc50 commit 807bcb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/group-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ class GroupHelper {
114114
if (filename && Array.isArray(filename)) {
115115
return filename.map(fp => this.resolveFilePath(fp, defaultValue)).filter(e => e);
116116
}
117-
if (filename && filename.indexOf('.js') < 0) {
117+
if (filename && filename.includes('.js')) {
118118
filename = filename + '.js';
119119
}
120-
if (defaultValue && defaultValue.indexOf('.js') < 0) {
120+
if (defaultValue && defaultValue.includes('.js')) {
121121
defaultValue = defaultValue + '.js';
122122
}
123123
let configPath;

0 commit comments

Comments
 (0)