Combine if blocks

This commit is contained in:
ahocevar
2018-11-16 13:04:03 +01:00
parent 81d0bc21d5
commit d3355f613c
+1 -3
View File
@@ -707,11 +707,9 @@ class CanvasExecutor {
} }
let widthIndex = 0; let widthIndex = 0;
for (; d < dd; d += 2) { for (; d < dd; d += 2) {
if (geometryWidths) { if (geometryWidths && geometryWidths[widthIndex++] < width / this.pixelRatio) {
if (geometryWidths[widthIndex++] < width / this.pixelRatio) {
continue; continue;
} }
}
this.replayImage_(context, this.replayImage_(context,
pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY, pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY,
declutterGroup, height, opacity, originX, originY, rotation, scale, declutterGroup, height, opacity, originX, originY, rotation, scale,