Remove redundant if block

This commit is contained in:
Andreas Hocevar
2018-08-16 06:25:55 +02:00
committed by ahocevar
parent eb0fcdb588
commit adce78e19e
+5 -8
View File
@@ -255,14 +255,11 @@ 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); listen(features, CollectionEventType.REMOVE,
listen(features, CollectionEventType.REMOVE, this.removeFeature_, this);
this.removeFeature_, this);
}
} }
/** /**