From beb861d707c9223f0066f19f5935aff3aeea26cf Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 15 Mar 2021 16:46:39 -0700 Subject: [PATCH] rename ambiguous variable --- src/widgets/contact-list.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/contact-list.jsx b/src/widgets/contact-list.jsx index c0ec5142..a34015f6 100644 --- a/src/widgets/contact-list.jsx +++ b/src/widgets/contact-list.jsx @@ -48,14 +48,14 @@ class ContactList extends React.Component { // If filter function is provided, filter out the items // which don't satisfy the condition. if (this.props.filterFunc && this.props.filter) { - let content = [key]; + const filterOn = [key]; if (c.private && c.private.comment) { - content.push(('' + c.private.comment).toLowerCase()); + filterOn.push(('' + c.private.comment).toLowerCase()); } if (c.public && c.public.fn) { - content.push(('' + c.public.fn).toLowerCase()); + filterOn.push(('' + c.public.fn).toLowerCase()); } - if (!this.props.filterFunc(this.props.filter, content)) { + if (!this.props.filterFunc(this.props.filter, filterOn)) { return; } }