Change bitwise or assignment to boolean assignment

Because `tsc` does not like using bitwise operations on booleans.
This commit is contained in:
William Wall
2018-09-19 12:57:02 -06:00
parent d44ba929ab
commit a4aaab5e32

View File

@@ -237,12 +237,12 @@ class Triangulation {
if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
const targetQuadExtent = boundingExtent([a, b, c, d]);
const targetCoverageX = getWidth(targetQuadExtent) / this.targetWorldWidth_;
needsSubdivision |=
targetCoverageX > MAX_TRIANGLE_WIDTH;
needsSubdivision = targetCoverageX > MAX_TRIANGLE_WIDTH ||
needsSubdivision;
}
if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {
needsSubdivision |=
sourceCoverageX > MAX_TRIANGLE_WIDTH;
needsSubdivision = sourceCoverageX > MAX_TRIANGLE_WIDTH ||
needsSubdivision;
}
}