Skip to content

Commit b0bb864

Browse files
authored
fix: Modify check for matchResult (#446)
1 parent 4c597fa commit b0bb864

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/exportJarSteps/ExportJarTaskProvider.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,7 @@ class ExportJarTaskTerminal implements Pseudoterminal {
289289
continue;
290290
}
291291
const matchResult: RegExpMatchArray | null = element.match(regExp);
292-
if (matchResult === null) {
293-
continue;
294-
}
295-
if (_.isEmpty(matchResult) || matchResult.length <= 2) {
292+
if (matchResult === null || _.isEmpty(matchResult) || matchResult.length <= 2) {
296293
if (extname(element) === ".jar") {
297294
artifacts.push(this.toAbsolutePosixPath(element));
298295
} else {

0 commit comments

Comments
 (0)