Skip to content

Commit

Permalink
Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Sep 29, 2014
1 parent 6e3a5ca commit aaeb2b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ol/interaction/modifyinteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ol.interaction.Modify = function(options) {
* @private
*/
this.overlay_ = new ol.FeatureOverlay({
style: (goog.isDef(options.style)) ? options.style :
style: goog.isDef(options.style) ? options.style :
ol.interaction.Modify.getDefaultStyleFunction()
});

Expand Down
2 changes: 1 addition & 1 deletion src/ol/interaction/selectinteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ol.interaction.Select = function(opt_options) {
* @type {ol.FeatureOverlay}
*/
this.featureOverlay_ = new ol.FeatureOverlay({
style: (goog.isDef(options.style)) ? options.style :
style: goog.isDef(options.style) ? options.style :
ol.interaction.Select.getDefaultStyleFunction()
});

Expand Down
4 changes: 2 additions & 2 deletions src/ol/layer/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ol.layer.Layer.visibleAtResolution = function(layerState, resolution) {
* @inheritDoc
*/
ol.layer.Layer.prototype.getLayersArray = function(opt_array) {
var array = (goog.isDef(opt_array)) ? opt_array : [];
var array = goog.isDef(opt_array) ? opt_array : [];
array.push(this);
return array;
};
Expand All @@ -72,7 +72,7 @@ ol.layer.Layer.prototype.getLayersArray = function(opt_array) {
* @inheritDoc
*/
ol.layer.Layer.prototype.getLayerStatesArray = function(opt_states) {
var states = (goog.isDef(opt_states)) ? opt_states : [];
var states = goog.isDef(opt_states) ? opt_states : [];
states.push(this.getLayerState());
return states;
};
Expand Down
4 changes: 2 additions & 2 deletions src/ol/layer/layergroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ goog.exportProperty(
* @inheritDoc
*/
ol.layer.Group.prototype.getLayersArray = function(opt_array) {
var array = (goog.isDef(opt_array)) ? opt_array : [];
var array = goog.isDef(opt_array) ? opt_array : [];
this.getLayers().forEach(function(layer) {
layer.getLayersArray(array);
});
Expand All @@ -191,7 +191,7 @@ ol.layer.Group.prototype.getLayersArray = function(opt_array) {
* @inheritDoc
*/
ol.layer.Group.prototype.getLayerStatesArray = function(opt_states) {
var states = (goog.isDef(opt_states)) ? opt_states : [];
var states = goog.isDef(opt_states) ? opt_states : [];

var pos = states.length;

Expand Down

0 comments on commit aaeb2b6

Please sign in to comment.