Skip to content

Commit

Permalink
Merged if statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
hristo-kanchev committed Oct 14, 2019
1 parent 62fdda4 commit 271518f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-devtools-shared/src/backend/renderer.js
Expand Up @@ -2529,10 +2529,8 @@ export function attach(
function forceRerender(id: number) {
const fiber = findCurrentFiberUsingSlowPathById(id);

if (fiber !== null) {
if (typeof scheduleUpdate === 'function') {
scheduleUpdate(fiber);
}
if (fiber !== null && typeof scheduleUpdate === 'function') {
scheduleUpdate(fiber);
}
}

Expand Down

0 comments on commit 271518f

Please sign in to comment.