Skip to content

Commit

Permalink
Apply suggestion for readability
Browse files Browse the repository at this point in the history
Co-authored-by: Marc G. <Mouvedia@users.noreply.github.com>
  • Loading branch information
ybiquitous and Mouvedia committed Apr 26, 2024
1 parent 000f631 commit f6cf12b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rules/shorthand-property-no-redundant-values/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ const rule = (primary, _secondaryOptions, context) => {
break;
}

if (!(isValueWord(valueNode) || isValueFunction(valueNode))) {
continue;
if (isValueWord(valueNode) || isValueFunction(valueNode)) {
valuesToShorthand.push(valueParser.stringify(valueNode));
}

valuesToShorthand.push(valueParser.stringify(valueNode));
}

if (shouldIgnore) return;
Expand Down

0 comments on commit f6cf12b

Please sign in to comment.