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 <thomas.roest@moxio.com>
  • Loading branch information
ThomasRoest and Thomas Roest committed 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
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.