Skip to content

Commit eeeb3cc

Browse files
victorneuretantony
authored andcommitted
Style suggestion applied
Co-authored-by: Antony Jones <ant@enzy.org>
1 parent 042c5ee commit eeeb3cc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -939,10 +939,9 @@ MapboxGeocoder.prototype = {
939939
this._inputEl.value = searchInput;
940940
this._typeahead.selected = null;
941941
this._typeahead.clear();
942-
if (showSuggestions && searchInput.length >= this.options.minLength) {
943-
this._geocode(searchInput);
944-
} else if (!showSuggestions) {
945-
this._onChange();
942+
if (searchInput.length >= this.options.minLength) {
943+
showSuggestions ? this._geocode(searchInput) : this._onChange();
944+
}
946945
}
947946
return this;
948947
},

0 commit comments

Comments
 (0)