Skip to content

Commit e0be2e8

Browse files
committed
Merge branch 'cleanup/code-quality-v2' into 'main'
refactor(cli): remove dead getCheckupTitle export Closes #192 See merge request postgres-ai/postgresai!264
2 parents 5aac00d + cbdc111 commit e0be2e8

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

cli/lib/checkup-dictionary.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,6 @@ export function getCheckupEntry(code: string): CheckupDictionaryEntry | null {
5757
return dictionaryByCode.get(code.toUpperCase()) ?? null;
5858
}
5959

60-
/**
61-
* Get the title for a checkup code.
62-
*
63-
* @param code - The check code (e.g., "A001", "H002")
64-
* @returns The title or the code itself if not found
65-
*/
66-
export function getCheckupTitle(code: string): string {
67-
const entry = getCheckupEntry(code);
68-
return entry?.title ?? code;
69-
}
70-
7160
/**
7261
* Check if a code exists in the dictionary.
7362
*

cli/lib/checkup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import * as fs from "fs";
5151
import * as path from "path";
5252
import * as pkg from "../package.json";
5353
import { getMetricSql, transformMetricRow, METRIC_NAMES } from "./metrics-loader";
54-
import { getCheckupTitle, buildCheckInfoMap } from "./checkup-dictionary";
54+
import { buildCheckInfoMap } from "./checkup-dictionary";
5555

5656
// Time constants
5757
const SECONDS_PER_DAY = 86400;

0 commit comments

Comments
 (0)