This commit is contained in:
Boki 2025-06-20 09:15:25 -04:00
parent 67c073e4f2
commit ee234edcd7
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ export class FileLoader implements ConfigLoader {
return JSON.parse(content);
} catch (error: unknown) {
// File not found is not an error (configs are optional)
if (error.code === 'ENOENT') {
if (error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT') {
return null;
}
throw error;