Fix codestyle for typeof comparison (#19928)

This commit is contained in:
Eugene Maslovich
2020-10-01 16:26:49 +01:00
committed by GitHub
parent 8657ad4278
commit 43363e2795
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}