Skip to content

Commit

Permalink
fix: add missing default cases for switch statements
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-almeida-konkconsulting committed Oct 18, 2023
1 parent 132c582 commit cf6a72d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, ElementRef, ViewChild } from "@angular/core";
import { MatPaginator, PageEvent } from "@angular/material/paginator";
import { MatSnackBar } from "@angular/material/snack-bar";
import { Router } from "@angular/router";
import { NGXLogger } from "ngx-logger";
import { debounceTime, distinctUntilChanged, filter, fromEvent, tap } from "rxjs";
import { ClientOverview, ClientServiceService } from "src/app/services/client-service/client-service";
import { IdentityOverview, IdentityOverviewFilter, IdentityService } from "src/app/services/identity-service/identity.service";
Expand Down Expand Up @@ -62,7 +63,8 @@ export class IdentityListComponent {
private readonly snackBar: MatSnackBar,
private readonly identityService: IdentityService,
private readonly tierService: TierService,
private readonly clientService: ClientServiceService
private readonly clientService: ClientServiceService,
private readonly logger: NGXLogger
) {
this.header = "Identities";
this.headerDescription = "A list of existing Identities";
Expand Down Expand Up @@ -207,6 +209,9 @@ export class IdentityListComponent {
this.getIdentities();
}
break;
default:
this.logger.error(`OnFilterChange: Invalid filter name: ${filter}`);
break;
}
}

Expand All @@ -224,6 +229,9 @@ export class IdentityListComponent {
this.filter.lastLoginAt.value = undefined;
if (this.filter.lastLoginAt.operator !== undefined) this.getIdentities();
break;
default:
this.logger.error(`ClearFilter: Invalid filter name: ${filter}`);
break;
}
}
}

0 comments on commit cf6a72d

Please sign in to comment.