Skip to content

Commit fc91077

Browse files
committed
lint
1 parent 8990780 commit fc91077

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/git/src/queries.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)