performance-optimizations-testing #159

Open
anomalist wants to merge 132 commits from performance-optimizations-testing into build-improvement
Showing only changes of commit 618b822c8b - Show all commits

View File

@@ -255,32 +255,27 @@ export class ProfileService {
}
/**
* Extract URL from AxiosError without type casting
* Extract error URL safely from error object
*/
private getErrorUrl(error: unknown): string | undefined {
if (this.isAxiosError(error)) {
return error.config?.url;
}
if (this.isApiError(error) && (error as any).config) {
const config = (error as any).config as { url?: string };
return config.url;
}
return undefined;
}
/**
* Type guard for AxiosError
*/
private isAxiosError(error: unknown): error is AxiosError {
return error instanceof AxiosError;
}
/**
* Extract error URL safely from error object
*/
private getErrorUrl(error: unknown): string | undefined {
if (this.isApiError(error) && error.config) {
const config = error.config as { url?: string };
return config.url;
}
return undefined;
}
}
/**