Skip to content

Commit

Permalink
fix: remove some unnecessary ignores (#2160)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Roest <[email protected]>
  • Loading branch information
ThomasRoest and Thomas Roest authored Jan 19, 2024
1 parent e81b3da commit 5574044
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/client/rsg-components/Preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export default class Preview extends Component<PreviewProps, PreviewState> {
this.reactRoot.render(wrappedComponent);
}
} catch (err) {
/* istanbul ignore next: it is near-impossible to trigger a sync error from ReactDOM.render */
if (err instanceof Error) {
/* istanbul ignore next */
this.handleError(err);
}
}
Expand Down

0 comments on commit 5574044

Please sign in to comment.