Skip to content

Commit

Permalink
Fix codestyle for typeof comparison (#19928)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehpc authored Oct 1, 2020
1 parent 8657ad4 commit 43363e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-reconciler/src/ReactFiberHooks.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ function mountEffect(
): void {
if (__DEV__) {
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
if ('undefined' !== typeof jest) {
if (typeof jest !== 'undefined') {
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
}
}
Expand Down Expand Up @@ -1276,7 +1276,7 @@ function updateEffect(
): void {
if (__DEV__) {
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
if ('undefined' !== typeof jest) {
if (typeof jest !== 'undefined') {
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
}
}
Expand Down Expand Up @@ -1771,7 +1771,7 @@ function dispatchAction<S, A>(
}
if (__DEV__) {
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
if ('undefined' !== typeof jest) {
if (typeof jest !== 'undefined') {
warnIfNotScopedWithMatchingAct(fiber);
warnIfNotCurrentlyActingUpdatesInDev(fiber);
}
Expand Down

0 comments on commit 43363e2

Please sign in to comment.