Remove redundant check

This commit is contained in:
Andreas Hocevar
2020-06-26 19:29:36 +02:00
parent f41776cbb7
commit 36a57ce6cc

View File

@@ -649,7 +649,7 @@ export function createSafeCoordinateTransform(
const sourceExtent = sourceProj.getExtent();
const sourceExtentWidth = getWidth(sourceExtent);
worldsAway = getWorldsAway(coord, sourceProj, sourceExtentWidth);
if (worldsAway && sourceExtent) {
if (worldsAway) {
// Move x to the real world
x = coord[0] - worldsAway * sourceExtentWidth;
}