Fix parens grouping in typecasts

This commit is contained in:
Frederic Junod
2018-02-15 08:31:38 +01:00
parent 4744849b76
commit a8f4348add
16 changed files with 45 additions and 102 deletions

View File

@@ -199,12 +199,9 @@ GMLBase.prototype.readGeometryElement = function(node, objectStack) {
context['srsName'] = node.firstElementChild.getAttribute('srsName');
context['srsDimension'] = node.firstElementChild.getAttribute('srsDimension');
/** @type {ol.geom.Geometry} */
const geometry = pushParseAndPop(null,
this.GEOMETRY_PARSERS_, node, objectStack, this);
const geometry = pushParseAndPop(null, this.GEOMETRY_PARSERS_, node, objectStack, this);
if (geometry) {
return (
/** @type {ol.geom.Geometry} */ transformWithOptions(geometry, false, context)
);
return /** @type {ol.geom.Geometry} */ (transformWithOptions(geometry, false, context));
} else {
return undefined;
}