File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -824,9 +824,7 @@ export async function getFileAtRef(
824824 * causes all of the default branch's changes to appear in diffs. This helper
825825 * detects that case and returns HEAD instead.
826826 */
827- async function resolveEffectiveMergeBase (
828- git : GitClient ,
829- ) : Promise < string > {
827+ async function resolveEffectiveMergeBase ( git : GitClient ) : Promise < string > {
830828 const defaultBranch = await detectDefaultBranchWithFallback ( git ) ;
831829 const mergeBase = await git . raw ( [ "merge-base" , defaultBranch , "HEAD" ] ) ;
832830 let mergeBaseSha = mergeBase . trim ( ) ;
@@ -840,9 +838,7 @@ async function resolveEffectiveMergeBase(
840838 . then ( ( ) => true )
841839 . catch ( ( ) => false ) ;
842840 if ( isAncestor ) {
843- mergeBaseSha = await git
844- . raw ( [ "rev-parse" , "HEAD" ] )
845- . then ( ( s ) => s . trim ( ) ) ;
841+ mergeBaseSha = await git . raw ( [ "rev-parse" , "HEAD" ] ) . then ( ( s ) => s . trim ( ) ) ;
846842 }
847843 }
848844
You can’t perform that action at this time.
0 commit comments