Remove redundant check
This commit is contained in:
+1
-1
@@ -649,7 +649,7 @@ export function createSafeCoordinateTransform(
|
|||||||
const sourceExtent = sourceProj.getExtent();
|
const sourceExtent = sourceProj.getExtent();
|
||||||
const sourceExtentWidth = getWidth(sourceExtent);
|
const sourceExtentWidth = getWidth(sourceExtent);
|
||||||
worldsAway = getWorldsAway(coord, sourceProj, sourceExtentWidth);
|
worldsAway = getWorldsAway(coord, sourceProj, sourceExtentWidth);
|
||||||
if (worldsAway && sourceExtent) {
|
if (worldsAway) {
|
||||||
// Move x to the real world
|
// Move x to the real world
|
||||||
x = coord[0] - worldsAway * sourceExtentWidth;
|
x = coord[0] - worldsAway * sourceExtentWidth;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user