Skip to content

Commit

Permalink
chore: 🤖 Minor prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Jan 17, 2024
1 parent 0afaff8 commit e1bf932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/hooks/usePoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const usePoller = (
scheduleNextRun();
} catch (error) {
failures++;
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
const errorMessage =
error instanceof Error ? error.message : 'Unknown error';
logger.error(`Poller ${name} error: ${errorMessage}`);
// Schedule the next run even if an error occurred
scheduleNextRun();
Expand Down

0 comments on commit e1bf932

Please sign in to comment.