Skip to content

Commit

Permalink
SF-3122 Use lambda in all throwError calls (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmyers authored Dec 18, 2024
1 parent 8046571 commit e3e072a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class RemoteTranslationEngine implements InteractiveTranslationEngine {
if (err.status === 404) {
return of(undefined);
} else {
return throwError(err);
return throwError(() => err);
}
})
)
Expand All @@ -156,7 +156,7 @@ export class RemoteTranslationEngine implements InteractiveTranslationEngine {
if (err.status === 404) {
return of({ confidence: 0.0, trainedSegmentCount: 0 });
} else {
return throwError(err);
return throwError(() => err);
}
})
)
Expand Down

0 comments on commit e3e072a

Please sign in to comment.