Skip to content

Commit 96e44cc

Browse files
committed
fix unnecessary type assertion
1 parent 858ab3c commit 96e44cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

backend/src/routing/filters/global-error-filter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export class GlobalErrorFilter implements ExceptionFilter {
5151

5252
if (exception instanceof AuthFlowException) {
5353
// If the exception is an AuthFlowException, redirect to the frontend login page
54-
const authFlowException: AuthFlowException =
55-
exception as AuthFlowException;
54+
const authFlowException: AuthFlowException = exception;
5655

5756
logger.debug(
5857
`Redirecting to login with error: ${authFlowException.message}`,

0 commit comments

Comments
 (0)