Skip to content

Commit 2530e7d

Browse files
Copilotalexr00
andcommitted
Add explicit return statement for clarity
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 585a185 commit 2530e7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/github/githubRepository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ export class GitHubRepository extends Disposable {
695695
if (openPr) {
696696
return this.createOrUpdatePullRequestModel(openPr);
697697
}
698+
// No open PR found for this branch
699+
return undefined;
698700
}
699701
} catch (e) {
700702
Logger.error(`Fetching pull request for branch failed: ${e}`, this.id);

0 commit comments

Comments
 (0)