diff options
| author | binarycat <binarycat@envs.net> | 2025-03-26 19:33:46 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-03-26 19:33:46 -0500 |
| commit | 74b7599230996968c476a5ea9b5e44be545e673e (patch) | |
| tree | 64f8367a194e79d6cfef6fc96a471c88f47e3664 | |
| parent | 1b8b09a01d6b0acf24b070cd997bff6cb739dfec (diff) | |
| download | rust-74b7599230996968c476a5ea9b5e44be545e673e.tar.gz rust-74b7599230996968c476a5ea9b5e44be545e673e.zip | |
satisfy eslint
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 651d12bb2e9..f3f4878b162 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -1,5 +1,5 @@ // ignore-tidy-filelength -/* global addClass, getNakedUrl, getSettingValue, getVar, nonnull, nonundef */ +/* global addClass, getNakedUrl, getSettingValue, getVar, nonundef */ /* global onEachLazy, removeClass, searchState, browserSupportsHistoryApi, exports */ "use strict"; @@ -2489,7 +2489,7 @@ class DocSearch { } } catch (err) { query = newParsedQuery(userQuery); - if (Array.isArray(err) && err.every((elem) => typeof elem == 'string')) { + if (Array.isArray(err) && err.every(elem => typeof elem === "string")) { query.error = err; } else { // rethrow the error if it isn't a string array @@ -2797,7 +2797,7 @@ class DocSearch { }, this.searchIndex[result.id]); // To be sure than it some items aren't considered as duplicate. - obj.fullPath = res[2] + "|" + obj.ty + obj.fullPath = res[2] + "|" + obj.ty; if (duplicates.has(obj.fullPath)) { continue; |
