Skip to content

Commit

Permalink
refactor(@putout/compare) superCompare: split isClassBody, isEmptyBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Apr 5, 2021
1 parent 13d17d4 commit 0bd6c34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/compare/lib/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ function superCompare(nodeValue, value, {add, templateStore}) {
if (comparePrimitives(nodeValue, value))
return true;

if (isClassBody(value) || isEmptyBlock(value))
if (isClassBody(value))
return true;

if (isEmptyBlock(value))
return true;

if (isAny(value))
Expand Down

0 comments on commit 0bd6c34

Please sign in to comment.