mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Update code style
This commit is contained in:
1 parent
5a431a12ac
commit
ed70d35e18
2 files changed
+2
-2
No files matched your search
@@ -81,7 +81,7 @@ function mapSingleChildIntoContext(traverseContext, child, name, i) {
|
||||
var mapBookKeeping = traverseContext;
|
||||
var mapResult = mapBookKeeping.mapResult;
|
||||
|
||||
var keyUnique = ('undefined' === typeof mapResult[name]);
|
||||
var keyUnique = (mapResult[name] === undefined);
|
||||
if (__DEV__) {
|
||||
warning(
|
||||
keyUnique,
|
||||
|
||||
@@ -22,7 +22,7 @@ var warning = require('warning');
|
||||
function flattenSingleChildIntoContext(traverseContext, child, name) {
|
||||
// We found a component instance.
|
||||
var result = traverseContext;
|
||||
var keyUnique = ('undefined' === typeof result[name]);
|
||||
var keyUnique = (result[name] === undefined);
|
||||
if (__DEV__) {
|
||||
warning(
|
||||
keyUnique,
|
||||
|
||||
Reference in new issue
Block a user