mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
eslint: Fix unicorn/consistent-existence-index-check.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5cbe3203f5
commit
3b79a534a2
@@ -746,7 +746,7 @@ export class BuddyList extends BuddyListConf {
|
||||
this.other_user_ids,
|
||||
]) {
|
||||
const pos = user_id_list.indexOf(opts.user_id);
|
||||
if (pos >= 0) {
|
||||
if (pos !== -1) {
|
||||
user_id_list.splice(pos, 1);
|
||||
was_removed = true;
|
||||
break;
|
||||
@@ -829,7 +829,7 @@ export class BuddyList extends BuddyListConf {
|
||||
// it yet.
|
||||
const pos = this.all_user_ids.indexOf(user_id);
|
||||
|
||||
if (pos < 0) {
|
||||
if (pos === -1) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user