mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 11:40:33 +08:00
Convert react-native-github/Libraries to let/const
Reviewed By: sahrens Differential Revision: D7956042 fbshipit-source-id: 221851aa311f3cdd6326497352b366048db0a1bb
This commit is contained in:
committed by
Facebook Github Bot
parent
266016c521
commit
8f5ebe5952
@@ -13,9 +13,9 @@ type Point = {
|
||||
y: ?number,
|
||||
}
|
||||
|
||||
var dummyPoint = {x: undefined, y: undefined};
|
||||
const dummyPoint = {x: undefined, y: undefined};
|
||||
|
||||
var pointsDiffer = function(one: ?Point, two: ?Point): bool {
|
||||
const pointsDiffer = function(one: ?Point, two: ?Point): bool {
|
||||
one = one || dummyPoint;
|
||||
two = two || dummyPoint;
|
||||
return one !== two && (
|
||||
|
||||
Reference in New Issue
Block a user