Skip to content

Commit

Permalink
Modified to adhere to no-continue ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmith111 committed Dec 22, 2020
1 parent 01bf077 commit c499a8d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/home/sidebar/ChatSwitcherView.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,9 @@ class ChatSwitcherView extends React.Component {
groupOption.login === option.login
));

// We must ignore the user if it matches the currently logged in user.
if (this.props.session.email === option.login) {
continue;
}

// Make sure we don't include the same option twice (automatically handled by using a `Set`)
if (isMatch && !isInGroupUsers) {
// We must also ignore the user if it matches the currently logged in user.
if (isMatch && !isInGroupUsers && this.props.session.email !== option.login) {
matches.add(option);
}

Expand Down

0 comments on commit c499a8d

Please sign in to comment.