autowp/autowp-frontend

View on GitHub
src/app/toasts/toasts.service.ts

Summary

Maintainability
A
45 mins
Test Coverage

Showing 1 of 1 total issue

Function handleError has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

public handleError(error: unknown) {
if (typeof error === 'string') {
this.error(error);
return;
}
Severity: Minor
Found in src/app/toasts/toasts.service.ts - About 45 mins to fix

There are no issues that match your filters.

Category
Status