mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
eslint: Fix unicorn/prefer-spread.
This was initially disabled for IE/Babel-related reasons that no longer apply. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
941a9bab38
commit
2a70c11c5f
@@ -947,7 +947,7 @@ export class Filter {
|
||||
return util.strcmp(a, b);
|
||||
};
|
||||
|
||||
return term_types.slice().sort(compare);
|
||||
return [...term_types].sort(compare);
|
||||
}
|
||||
|
||||
static operator_to_prefix(operator, negated) {
|
||||
@@ -1060,7 +1060,7 @@ export class Filter {
|
||||
}
|
||||
return "unknown operator";
|
||||
});
|
||||
return parts.concat(more_parts).join(", ");
|
||||
return [...parts, ...more_parts].join(", ");
|
||||
}
|
||||
|
||||
static describe(operators) {
|
||||
|
||||
Reference in New Issue
Block a user