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 6b88f18 commit c3b3369
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 c3b3369

Please sign in to comment.