Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Dec 6, 2024
1 parent d940503 commit bc873d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions webapp/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const appConfig: ApplicationConfig = {
{ provide: ErrorHandler, useClass: SentryErrorHandler },
{ provide: TraceService, deps: [Router] },
{
provide: APP_INITIALIZER,
useFactory: () => () => {},
deps: [TraceService],
multi: true,
},
provide: APP_INITIALIZER,
useFactory: () => () => {},
deps: [TraceService],
multi: true
}
]
};
18 changes: 9 additions & 9 deletions webapp/src/app/core/sentry/sentry.error-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ErrorHandler, Injectable } from '@angular/core';
import { environment } from 'environments/environment';
import * as Sentry from "@sentry/angular";
import * as Sentry from '@sentry/angular';

@Injectable({ providedIn: 'root' })
export class SentryErrorHandler extends ErrorHandler {
Expand Down Expand Up @@ -35,14 +35,14 @@ export class SentryErrorHandler extends ErrorHandler {
* @param error
*/
override handleError(error: any): void {

Check failure on line 37 in webapp/src/app/core/sentry/sentry.error-handler.ts

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Unexpected any. Specify a different type
if (error && error.name === 'HttpErrorResponse' && error.status < 500 && error.status >= 400) {
super.handleError(error);
return;
}
if (this.environment.sentry.environment !== 'local') {
const exception = error.error || error.message || error.originalError || error;
Sentry.captureException(exception);
}
if (error && error.name === 'HttpErrorResponse' && error.status < 500 && error.status >= 400) {
super.handleError(error);
return;
}
if (this.environment.sentry.environment !== 'local') {
const exception = error.error || error.message || error.originalError || error;
Sentry.captureException(exception);
}
super.handleError(error);
}
}
2 changes: 1 addition & 1 deletion webapp/src/app/home/leaderboard/filter/filter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export class LeaderboardFilterComponent {
teams = input<string[]>();

throwTestError() {
throw new Error("Sentry Test Error2");
throw new Error('Sentry Test Error2');
}
}

0 comments on commit bc873d3

Please sign in to comment.