mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Removed unnecessary null check (#6841)
This commit is contained in:
1 parent
c136369a81
commit
799eae2faf
1 file changed
+1
-1
@@ -26,7 +26,7 @@ var UIEventInterface = {
|
||||
}
|
||||
|
||||
var target = getEventTarget(event);
|
||||
if (target != null && target.window === target) {
|
||||
if (target.window === target) {
|
||||
// target is a window object
|
||||
return target;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user