Skip to content

Commit

Permalink
flow is very picky
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Oct 11, 2019
1 parent bdadf98 commit 7e5ae94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geo/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class Transform {
this._minZoom = minZoom || 0;
this._maxZoom = maxZoom || 22;

this._minPitch = minPitch === undefined ? 0 : minPitch;
this._maxPitch = maxPitch === undefined ? 60 : maxPitch;
this._minPitch = (minPitch === undefined || minPitch === null) ? 0 : minPitch;
this._maxPitch = (maxPitch === undefined || maxPitch === null) ? 60 : maxPitch;

this.setMaxBounds();

Expand Down

0 comments on commit 7e5ae94

Please sign in to comment.