File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ function getSimpleUpstream(repository: Repository) {
463
463
}
464
464
}
465
465
466
- async function getBestPossibleUpstream ( repository : Repository , commit : Commit ) : Promise < Remote | undefined > {
466
+ async function getBestPossibleUpstream ( repository : Repository , commit : Commit | undefined ) : Promise < Remote | undefined > {
467
467
const fallbackUpstream = new Promise < Remote | undefined > ( resolve => {
468
468
resolve ( getSimpleUpstream ( repository ) ) ;
469
469
} ) ;
@@ -515,7 +515,7 @@ export async function createGithubPermalink(
515
515
commitHash = repository . state . HEAD ?. commit ;
516
516
}
517
517
518
- const upstream = commit ? await getBestPossibleUpstream ( repository , commit ) : undefined ;
518
+ const upstream = await getBestPossibleUpstream ( repository , commit ) ;
519
519
if ( ! upstream || ! upstream . fetchUrl ) {
520
520
return { permalink : undefined , error : 'The selection may not exist on any remote.' , originalFile : uri } ;
521
521
}
You can’t perform that action at this time.
0 commit comments