From 41a1b67c3b6e1cee3f68ccfa14428b9f50021ab2 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Fri, 12 Jul 2024 20:59:13 +0000 Subject: [PATCH] Format --- packages/mergebot/src/_tests/fixturedActions.test.ts | 5 ++--- packages/mergebot/src/util/cachedQueries.ts | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/mergebot/src/_tests/fixturedActions.test.ts b/packages/mergebot/src/_tests/fixturedActions.test.ts index d2b9cfbe9c..3d352bc0fd 100644 --- a/packages/mergebot/src/_tests/fixturedActions.test.ts +++ b/packages/mergebot/src/_tests/fixturedActions.test.ts @@ -7,9 +7,8 @@ import { deriveStateForPR } from "../pr-info"; import { PR } from "../queries/schema/PR"; import { readJsonSync, scrubDiagnosticDetails } from "../util/util"; import * as cachedQueries from "./cachedQueries"; -jest.mock( - "../util/cachedQueries", - () => Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])), +jest.mock("../util/cachedQueries", () => + Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])), ); import { executePrActions } from "../execute-pr-actions"; diff --git a/packages/mergebot/src/util/cachedQueries.ts b/packages/mergebot/src/util/cachedQueries.ts index 709f5b9eca..6913c2b3ab 100644 --- a/packages/mergebot/src/util/cachedQueries.ts +++ b/packages/mergebot/src/util/cachedQueries.ts @@ -12,10 +12,7 @@ export async function getProjectBoardColumns(): Promise> { for (const field of noNullish(project?.fields?.nodes)) { if (field.__typename === "ProjectV2SingleSelectField" && field.name === "Status") { for (const option of field.options) { - if ( - option.name && - option.id - ) { + if (option.name && option.id) { columns.set(option.name, option.id); } }