Skip to content

Commit 7e5ae94

Browse files
committed
flow is very picky
1 parent bdadf98 commit 7e5ae94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geo/transform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class Transform {
6161
this._minZoom = minZoom || 0;
6262
this._maxZoom = maxZoom || 22;
6363

64-
this._minPitch = minPitch === undefined ? 0 : minPitch;
65-
this._maxPitch = maxPitch === undefined ? 60 : maxPitch;
64+
this._minPitch = (minPitch === undefined || minPitch === null) ? 0 : minPitch;
65+
this._maxPitch = (maxPitch === undefined || maxPitch === null) ? 60 : maxPitch;
6666

6767
this.setMaxBounds();
6868

0 commit comments

Comments
 (0)