Skip to content

Commit 64b70fc

Browse files
committed
🤖 GITHUB ACTIONS format_prettier
1 parent 5630662 commit 64b70fc

24 files changed

Lines changed: 58 additions & 164 deletions

File tree

‎src/app/cdk/interstitials/interstitials.service.ts‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import { HttpClient } from '@angular/common/http'
22
import { Inject, Injectable } from '@angular/core'
33
import { Observable, of } from 'rxjs'
4-
import {
5-
catchError,
6-
filter,
7-
map,
8-
switchMap,
9-
take,
10-
tap,
11-
} from 'rxjs/operators'
4+
import { catchError, filter, map, switchMap, take, tap } from 'rxjs/operators'
125
import { UserService } from 'src/app/core'
136
import { ErrorHandlerService } from 'src/app/core/error-handler/error-handler.service'
147
import { InterstitialType } from './interstitial.type'
@@ -102,9 +95,7 @@ export class InterstitialsService {
10295
`${runtimeEnvironment.API_WEB}account/addInterstitialFlag`,
10396
interstitialName
10497
)
105-
.pipe(
106-
catchError((error) => this._errorHandler.handleError(error))
107-
)
98+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
10899
}
109100

110101
/**

‎src/app/core/account-actions-deactivate/account-actions-deactivate.service.ts‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export class AccountActionsDeactivateService {
3434
.get<ExpiringLinkVerification>(
3535
runtimeEnvironment.API_WEB + `account/deactivate/` + token
3636
)
37-
.pipe(
38-
catchError((error) => this._errorHandler.handleError(error))
39-
)
37+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
4038
}
4139

4240
deactivateAccount(
@@ -48,9 +46,7 @@ export class AccountActionsDeactivateService {
4846
runtimeEnvironment.API_WEB + `account/deactivate/` + token,
4947
data
5048
)
51-
.pipe(
52-
catchError((error) => this._errorHandler.handleError(error))
53-
)
49+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
5450
}
5551

5652
generateDeactivationLink(): Observable<DeactivateResponse> {
@@ -59,8 +55,6 @@ export class AccountActionsDeactivateService {
5955
runtimeEnvironment.API_WEB + `account/send-deactivate-account.json`,
6056
this.options
6157
)
62-
.pipe(
63-
catchError((error) => this._errorHandler.handleError(error))
64-
)
58+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
6559
}
6660
}

‎src/app/core/account-actions-duplicated/account-actions-duplicated.service.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export class AccountActionsDuplicatedService {
4444
account,
4545
{ headers: this.headers }
4646
)
47-
.pipe(
48-
catchError((error) => this._errorHandler.handleError(error))
49-
)
47+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
5048
}
5149
}

‎src/app/core/account-default-email-frequencies/account-default-email-frequencies.service.ts‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export class AccountDefaultEmailFrequenciesService {
2424
runtimeEnvironment.API_WEB + `notifications/frequencies/view`,
2525
{ headers: this.headers }
2626
)
27-
.pipe(
28-
catchError((error) => this._errorHandler.handleError(error))
29-
)
27+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
3028
}
3129

3230
updateAmendNotifications(frequency: number): Observable<void> {
@@ -37,9 +35,7 @@ export class AccountDefaultEmailFrequenciesService {
3735
frequency,
3836
{ headers: this.headers }
3937
)
40-
.pipe(
41-
catchError((error) => this._errorHandler.handleError(error))
42-
)
38+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
4339
}
4440
updateAdminNotifications(frequency: string): Observable<void> {
4541
return this._http
@@ -49,9 +45,7 @@ export class AccountDefaultEmailFrequenciesService {
4945
frequency,
5046
{ headers: this.headers }
5147
)
52-
.pipe(
53-
catchError((error) => this._errorHandler.handleError(error))
54-
)
48+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
5549
}
5650
updateMemberNotifications(frequency: string): Observable<void> {
5751
return this._http
@@ -61,9 +55,7 @@ export class AccountDefaultEmailFrequenciesService {
6155
frequency,
6256
{ headers: this.headers }
6357
)
64-
.pipe(
65-
catchError((error) => this._errorHandler.handleError(error))
66-
)
58+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
6759
}
6860

6961
updateMemberTipsUpdates(tips: boolean): Observable<void> {
@@ -74,8 +66,6 @@ export class AccountDefaultEmailFrequenciesService {
7466
tips,
7567
{ headers: this.headers }
7668
)
77-
.pipe(
78-
catchError((error) => this._errorHandler.handleError(error))
79-
)
69+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
8070
}
8171
}

‎src/app/core/account-default-visibility/account-default-visibility.service.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export class AccountDefaultVisibilityService {
2525
frequency,
2626
{ headers: this.headers }
2727
)
28-
.pipe(
29-
catchError((error) => this._errorHandler.handleError(error))
30-
)
28+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
3129
}
3230
}

‎src/app/core/account-security-alternate-sign-in/account-security-alternate-sign-in.service.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ export class AccountSecurityAlternateSignInService {
7373
headers: this.headers,
7474
}
7575
)
76-
.pipe(
77-
catchError((error) => this._errorHandler.handleError(error))
78-
)
76+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
7977
}
8078

8179
populateIdPNames({

‎src/app/core/account-security-password/account-security-password.service.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ export class AccountSecurityPasswordService {
2828
accountPassword,
2929
{ headers: this.headers }
3030
)
31-
.pipe(
32-
catchError((error) => this._errorHandler.handleError(error))
33-
)
31+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
3432
}
3533
}

‎src/app/core/account-trusted-individuals/account-trusted-individuals.service.ts‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ export class AccountTrustedIndividualsService {
6767
headers: this.headers,
6868
}
6969
)
70-
.pipe(
71-
catchError((error) => this._errorHandler.handleError(error))
72-
)
70+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
7371
}
7472
add(value: ExpandedSearchResultsContent) {
7573
return this._http
@@ -90,9 +88,7 @@ export class AccountTrustedIndividualsService {
9088
`account/search-for-delegate-by-email/${encodeURIComponent(email)}/`,
9189
{ headers: this.headers }
9290
)
93-
.pipe(
94-
catchError((error) => this._errorHandler.handleError(error))
95-
)
91+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
9692
}
9793
addByEmail(delegateEmail: string) {
9894
return this._http
@@ -114,9 +110,7 @@ export class AccountTrustedIndividualsService {
114110
`account/search-for-delegate-by-orcid/${encodeURIComponent(email)}/`,
115111
{ headers: this.headers }
116112
)
117-
.pipe(
118-
catchError((error) => this._errorHandler.handleError(error))
119-
)
113+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
120114
}
121115
addByOrcid(delegateToManage: string) {
122116
return this._http

‎src/app/core/account-trusted-organizations/account-trusted-organizations.service.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export class AccountTrustedOrganizationsService {
2323
runtimeEnvironment.API_WEB + `account/get-trusted-orgs.json`,
2424
{ headers: this.headers }
2525
)
26-
.pipe(
27-
catchError((error) => this._errorHandler.handleError(error))
28-
)
26+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
2927
}
3028

3129
delete(
@@ -39,8 +37,6 @@ export class AccountTrustedOrganizationsService {
3937
undefined,
4038
{ headers: this.headers }
4139
)
42-
.pipe(
43-
catchError((error) => this._errorHandler.handleError(error))
44-
)
40+
.pipe(catchError((error) => this._errorHandler.handleError(error)))
4541
}
4642
}

‎src/app/core/http/retry-transient.interceptor.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ export class RetryTransientInterceptor implements HttpInterceptor {
3535
)
3636
}
3737
}
38-

0 commit comments

Comments
 (0)