lint
This commit is contained in:
parent
67c073e4f2
commit
ee234edcd7
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ export async function fetchSession(): Promise<Record<string, string> | undefined
|
|||
}
|
||||
}
|
||||
|
||||
export async function fetchExchanges(sessionHeaders: Record<string, string>): Promise<any> {
|
||||
export async function fetchExchanges(sessionHeaders: Record<string, string>): Promise<unknown> {
|
||||
try {
|
||||
logger.info('🔍 Fetching exchanges with session headers...');
|
||||
|
||||
|
|
|
|||
|
|
@ -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