eslint: Remove and prohibit unused eslint-disable directives.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-12-10 18:08:45 -08:00
parent b3aa44c914
commit c7a6902fe3
10 changed files with 10 additions and 12 deletions

View File

@@ -253,7 +253,6 @@ exports.create = function ($container, list, opts) {
meta.sorting_function = sorting_function;
} else if (typeof sorting_function === "string") {
if (typeof prop === "string") {
/* eslint-disable max-len */
meta.sorting_function = meta.generic_sorting_functions[sorting_function](prop);
} else {
meta.sorting_function = meta.sorting_functions.get(sorting_function);