Remove some unnecessary parentheses

This commit is contained in:
Tom Payne
2012-07-22 22:37:26 +02:00
parent 269bd9387e
commit 58bd2182a6
5 changed files with 15 additions and 17 deletions
+2 -4
View File
@@ -79,8 +79,7 @@ ol.Layer.prototype.getHue = function() {
* @return {number} Opacity.
*/
ol.Layer.prototype.getOpacity = function() {
return /** @type {number} */ (
this.get(ol.LayerProperty.OPACITY));
return /** @type {number} */ this.get(ol.LayerProperty.OPACITY);
};
@@ -104,8 +103,7 @@ ol.Layer.prototype.getStore = function() {
* @return {boolean} Visible.
*/
ol.Layer.prototype.getVisible = function() {
return /** @type {boolean} */ (
this.get(ol.LayerProperty.VISIBLE));
return /** @type {boolean} */ this.get(ol.LayerProperty.VISIBLE);
};