lint
This commit is contained in:
parent
67c073e4f2
commit
ee234edcd7
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue