File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export class DefaultDataService<T> implements EntityCollectionDataService<T> {
168
168
}
169
169
default : {
170
170
const error = new Error ( 'Unimplemented HTTP method, ' + method ) ;
171
- result$ = throwError ( ( ) => error ) ;
171
+ result$ = throwError ( error ) ;
172
172
}
173
173
}
174
174
if ( this . timeout ) {
@@ -184,7 +184,7 @@ export class DefaultDataService<T> implements EntityCollectionDataService<T> {
184
184
return ok ;
185
185
}
186
186
const error = new DataServiceError ( err , reqData ) ;
187
- return throwError ( ( ) => error ) ;
187
+ return throwError ( error ) ;
188
188
} ;
189
189
}
190
190
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class EntityCacheDataService {
79
79
protected handleError ( reqData : RequestData ) {
80
80
return ( err : any ) => {
81
81
const error = new DataServiceError ( err , reqData ) ;
82
- return throwError ( ( ) => error ) ;
82
+ return throwError ( error ) ;
83
83
} ;
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -206,14 +206,13 @@ export class EntityCacheDispatcher {
206
206
mergeMap ( ( act ) => {
207
207
return act . type === EntityCacheAction . SAVE_ENTITIES_CANCEL
208
208
? throwError (
209
- ( ) =>
210
- new PersistanceCanceled (
211
- ( act as SaveEntitiesCancel ) . payload . reason
212
- )
209
+ new PersistanceCanceled (
210
+ ( act as SaveEntitiesCancel ) . payload . reason
211
+ )
213
212
)
214
213
: act . type === EntityCacheAction . SAVE_ENTITIES_SUCCESS
215
214
? of ( ( act as SaveEntitiesSuccess ) . payload . changeSet )
216
- : throwError ( ( ) => ( act as SaveEntitiesError ) . payload ) ;
215
+ : throwError ( ( act as SaveEntitiesError ) . payload ) ;
217
216
} )
218
217
) ;
219
218
}
Original file line number Diff line number Diff line change @@ -590,10 +590,10 @@ export class EntityDispatcherBase<T> implements EntityDispatcher<T> {
590
590
mergeMap ( ( act ) => {
591
591
const { entityOp } = act . payload ;
592
592
return entityOp === EntityOp . CANCEL_PERSIST
593
- ? throwError ( ( ) => new PersistanceCanceled ( act . payload . data ) )
593
+ ? throwError ( new PersistanceCanceled ( act . payload . data ) )
594
594
: entityOp . endsWith ( OP_SUCCESS )
595
595
? of ( act . payload . data as D )
596
- : throwError ( ( ) => act . payload . data . error ) ;
596
+ : throwError ( act . payload . data . error ) ;
597
597
} )
598
598
) ;
599
599
}
You can’t perform that action at this time.
0 commit comments