Skip to content

Commit 87e6200

Browse files
committed
remove unnecessary code
1 parent f1a5fe2 commit 87e6200

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

select2.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,9 +1571,7 @@ the specific language governing permissions and limitations under the Apache Lic
15711571
}
15721572

15731573
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
1574-
if (results.find(".select2-no-results").length === 0) {
1575-
render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
1576-
}
1574+
render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
15771575
return;
15781576
}
15791577

0 commit comments

Comments
 (0)