Remove redundant if block
This commit is contained in:
committed by
ahocevar
parent
eb0fcdb588
commit
adce78e19e
@@ -255,7 +255,6 @@ class Select extends Interaction {
|
|||||||
*/
|
*/
|
||||||
this.featureLayerAssociation_ = {};
|
this.featureLayerAssociation_ = {};
|
||||||
|
|
||||||
if (this.featureOverlay_) {
|
|
||||||
const features = this.featureOverlay_.getSource().getFeaturesCollection();
|
const features = this.featureOverlay_.getSource().getFeaturesCollection();
|
||||||
listen(features, CollectionEventType.ADD,
|
listen(features, CollectionEventType.ADD,
|
||||||
this.addFeature_, this);
|
this.addFeature_, this);
|
||||||
@@ -263,8 +262,6 @@ class Select extends Interaction {
|
|||||||
this.removeFeature_, this);
|
this.removeFeature_, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature.
|
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature.
|
||||||
* @param {module:ol/layer/Layer} layer Layer.
|
* @param {module:ol/layer/Layer} layer Layer.
|
||||||
|
|||||||
Reference in New Issue
Block a user