Skip to content

Commit ca61625

Browse files
EMaherCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 63eeb89 commit ca61625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/config-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function assertStringArray(value: unknown, fieldName: string): string[] {
3232
export async function loadFilterConfig(filePath: string): Promise<FilterConfig | undefined> {
3333
try {
3434
const content = await fs.readFile(filePath, 'utf-8');
35-
const parsed = yaml.load(content) as Record<string, unknown> ?? {};
35+
const parsed = (yaml.load(content) ?? {}) as Record<string, unknown>;
3636

3737
// Validate structure — each field must be an array of strings
3838
const config: FilterConfig = {};

0 commit comments

Comments
 (0)