@samitouri / QOS-React / commits / a159e85c46

removed inline boolean checks for methods

Dominic Gannaway committed Mar 7, 2017 at 13:35 UTC a159e85c469cb2ad336d6976eaf11cf12ccbde10
3 files changed +4 -4
src/isomorphic/classic/element/ReactElementValidator.js
+2 -2
@@ -124,7 +124,7 @@ function validateExplicitKey(element, parentType) {
124 '%s%s See https://fb.me/react-warning-keys for more information.%s',
125 currentComponentErrorInfo,
126 childOwner,
127 - getCurrentStackAddendum && getCurrentStackAddendum(element)
127 + getCurrentStackAddendum(element)
128 );
129 }
130
@@ -227,7 +227,7 @@ var ReactElementValidator = {
227 info += getDeclarationErrorAddendum();
228 }
229
230 - info += getCurrentStackAddendum && getCurrentStackAddendum();
230 + info += getCurrentStackAddendum();
231
232 warning(
233 false,
src/renderers/dom/shared/hooks/ReactDOMInvalidARIAHook.js
+1 -1
@@ -28,7 +28,7 @@ if (__DEV__) {
28 function getStackAddendum(debugID) {
29 if (debugID != null) {
30 // This can only happen on Stack
31 - return getStackAddendumByID && getStackAddendumByID(debugID);
31 + return getStackAddendumByID(debugID);
32 } else {
33 // This can only happen on Fiber
34 return ReactDebugCurrentFiber.getCurrentFiberStackAddendum();
src/renderers/dom/shared/hooks/ReactDOMNullInputValuePropHook.js
+1 -1
@@ -25,7 +25,7 @@ var didWarnValueNull = false;
25 function getStackAddendum(debugID) {
26 if (debugID != null) {
27 // This can only happen on Stack
28 - return getStackAddendumByID && getStackAddendumByID(debugID);
28 + return getStackAddendumByID(debugID);
29 } else {
30 // This can only happen on Fiber
31 return ReactDebugCurrentFiber.getCurrentFiberStackAddendum();