Skip to content

Commit

Permalink
Remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck committed Oct 15, 2019
1 parent 609bdba commit 3fd7758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-self-assign.js
Expand Up @@ -61,7 +61,7 @@ function isSameMember(left, right) {
if (lobj.type === "MemberExpression") {
return isSameMember(lobj, robj);
}
if (lobj.type === "ThisExpression" && lobj.type === robj.type) {
if (lobj.type === "ThisExpression") {
return true;
}
return lobj.type === "Identifier" && lobj.name === robj.name;
Expand Down

0 comments on commit 3fd7758

Please sign in to comment.