Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Change unused expression to just function calls.
evykassirer2085d90736b6
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.jsindex b1fc63e0e6e..5d8d7e8f591 100644--- a/web/third/bootstrap-typeahead/typeahead.js+++ b/web/third/bootstrap-typeahead/typeahead.js@@ -207,9 +207,11 @@ import {get_string_diff} from "../../src/util";set_value() {const val = this.$menu.find(".active").data("typeahead-value");- this.$element.is("[contenteditable]")- ? this.$element.html(val)- : this.$element.val(val);+ if (this.$element.is("[contenteditable]")) {+ this.$element.html(val);+ } else {+ this.$element.val(val);+ }if (this.on_move) {this.on_move();