Skip to content

Commit 817b097

Browse files
ehpckoto
authored andcommitted
Fix codestyle for typeof comparison (facebook#19928)
1 parent d3d4bc0 commit 817b097

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-reconciler/src/ReactFiberHooks.new.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ function mountEffect(
12481248
): void {
12491249
if (__DEV__) {
12501250
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1251-
if ('undefined' !== typeof jest) {
1251+
if (typeof jest !== 'undefined') {
12521252
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
12531253
}
12541254
}
@@ -1276,7 +1276,7 @@ function updateEffect(
12761276
): void {
12771277
if (__DEV__) {
12781278
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1279-
if ('undefined' !== typeof jest) {
1279+
if (typeof jest !== 'undefined') {
12801280
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
12811281
}
12821282
}
@@ -1771,7 +1771,7 @@ function dispatchAction<S, A>(
17711771
}
17721772
if (__DEV__) {
17731773
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1774-
if ('undefined' !== typeof jest) {
1774+
if (typeof jest !== 'undefined') {
17751775
warnIfNotScopedWithMatchingAct(fiber);
17761776
warnIfNotCurrentlyActingUpdatesInDev(fiber);
17771777
}

0 commit comments

Comments
 (0)