Skip to content

Commit 1673e00

Browse files
nmnFacebook Github Bot 4
authored andcommitted
correct flow types
Summary: The function should have optional arguments, but not nullable types. Closes #7580 Differential Revision: D3304994 Pulled By: davidaurelio fbshipit-source-id: 9918817429126ea16dd3076b61a3493c3a3a8388
1 parent f13322c commit 1673e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class RouteStack {
117117
return this._routeNodes.findIndex(finder, this);
118118
}
119119

120-
slice(begin: ?number, end: ?number): RouteStack {
120+
slice(begin?: number, end?: number): RouteStack {
121121
var routeNodes = this._routeNodes.slice(begin, end);
122122
var index = Math.min(this._index, routeNodes.size - 1);
123123
return this._update(index, routeNodes);

0 commit comments

Comments
 (0)