Small code cleanup

drop superfluous if.
This commit is contained in:
Geert Premereur
2020-01-08 13:44:43 +01:00
committed by Andreas Hocevar
parent dc957ec104
commit 2d7e55e26a

View File

@@ -333,8 +333,7 @@ class Select extends Interaction {
if (this.style_) {
this.features_.forEach(this.applySelectedStyle_.bind(this));
}
}
if (!map) {
} else {
this.features_.removeEventListener(CollectionEventType.ADD, this.boundAddFeature_);
this.features_.removeEventListener(CollectionEventType.REMOVE, this.boundRemoveFeature_);
}