Skip to content

Commit c338c7f

Browse files
committed
chore(ts): fix possible undefined value from updated config
1 parent 9477153 commit c338c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/application/rebase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function extractConflictingFiles(errorMessage: string): string[] {
184184

185185
// "CONFLICT (content|add/add): Merge conflict in <path>"
186186
const mergeConflictMatch = line.match(/Merge conflict in (.+)$/);
187-
if (mergeConflictMatch) {
187+
if (mergeConflictMatch?.[1]) {
188188
files.push(mergeConflictMatch[1].trim());
189189
continue;
190190
}

0 commit comments

Comments
 (0)