Skip to content

Commit

Permalink
fix: remove some unnecessary ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Roest committed Jan 19, 2024
1 parent e81b3da commit 668bc41
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 668bc41

Please sign in to comment.