Skip to content

Commit 4e57344

Browse files
committed
duplicated method removed
1 parent 34a34fe commit 4e57344

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/app/core/services/http-req-res.interceptor.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class HTTPReqResInterceptor implements HttpInterceptor {
3636
return next.handle(newReq).pipe(
3737
tap((e) => {
3838
if (e instanceof HttpResponse) {
39-
this.successHandler(e.body);
39+
this.handleSuccess(e.body);
4040
}
4141
}),
4242
catchError((err) => this.handleError(newReq, next, err)),
@@ -46,10 +46,6 @@ export class HTTPReqResInterceptor implements HttpInterceptor {
4646
);
4747
}
4848

49-
successHandler(body: any) {
50-
/* if anything to do with success here */
51-
}
52-
5349
handleError(newRequest: HttpRequest<any>, next: HttpHandler, err: any) {
5450
if (err instanceof HttpErrorResponse && err.status === 401) {
5551
return this.handle401(newRequest, next);

0 commit comments

Comments
 (0)