Skip to content

Commit

Permalink
break instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
paulshen committed Jun 19, 2019
1 parent ea2c6d7 commit 568ef3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-reconciler/src/ReactFiberCommitWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,11 @@ function commitUnmount(current: Fiber): void {
if (typeof instance.componentWillUnmount === 'function') {
safelyCallComponentWillUnmount(current, instance);
}
return;
break;
}
case HostComponent: {
safelyDetachRef(current);
return;
break;
}
case HostPortal: {
// TODO: this is recursive.
Expand All @@ -745,7 +745,7 @@ function commitUnmount(current: Fiber): void {
} else if (supportsPersistence) {
emptyPortalContainer(current);
}
return;
break;
}
case EventComponent: {
if (enableEventAPI) {
Expand Down

0 comments on commit 568ef3e

Please sign in to comment.