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

@@ -571,9 +571,7 @@ View.prototype.constrainRotation = function(rotation, opt_delta) {
* @api
*/
View.prototype.getCenter = function() {
return (
/** @type {ol.Coordinate|undefined} */ this.get(ViewProperty.CENTER)
);
return /** @type {ol.Coordinate|undefined} */ (this.get(ViewProperty.CENTER));
};
@@ -700,9 +698,7 @@ View.prototype.getProjection = function() {
* @api
*/
View.prototype.getResolution = function() {
return (
/** @type {number|undefined} */ this.get(ViewProperty.RESOLUTION)
);
return /** @type {number|undefined} */ (this.get(ViewProperty.RESOLUTION));
};
@@ -763,9 +759,7 @@ View.prototype.getResolutionForValueFunction = function(opt_power) {
* @api
*/
View.prototype.getRotation = function() {
return (
/** @type {number} */ this.get(ViewProperty.ROTATION)
);
return /** @type {number} */ (this.get(ViewProperty.ROTATION));
};