Skip to content

Commit 63eeb89

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 1ac6c45 commit 63eeb89

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
@@ -124,7 +124,7 @@ export async function loadOverrideConfig(filePath: string): Promise<OverrideConf
124124
export async function loadOTelConfig(filePath: string): Promise<Record<string, unknown> | undefined> {
125125
try {
126126
const content = await fs.readFile(filePath, 'utf-8');
127-
const parsed = yaml.load(content) as Record<string, unknown> ?? {};
127+
const parsed = (yaml.load(content) ?? {}) as Record<string, unknown>;
128128

129129
logger.debug(`Loaded OTel config from ${filePath}`);
130130
return parsed;

0 commit comments

Comments
 (0)