Skip to content

Commit

Permalink
Fix: Refactor isValueTimeCount -> timeValueCount
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaguchi1102 committed Sep 6, 2022
1 parent 7be15a3 commit b6d20ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/time-min-milliseconds/index.js
Expand Up @@ -54,7 +54,7 @@ const rule = (primary, secondaryOptions) => {
const propertyName = vendor.unprefixed(decl.prop.toLowerCase());
const propertyValue = decl.value;
const parsedValue = valueParser(getDeclarationValue(decl));
let isValueTimeCount = 0;
let timeValueCount = 0;

parsedValue.walk((node) => {
const { value, sourceIndex } = node;
Expand All @@ -70,9 +70,9 @@ const rule = (primary, secondaryOptions) => {

if (!shorthandTimeProperties.has(propertyName)) return;

isValueTimeCount = valueTimeCheck(dimension, value, isValueTimeCount);
timeValueCount = valueTimeCheck(dimension, value, timeValueCount);

if (isAcceptableTime(dimension) || (ignoreDelay && isValueTimeCount !== 1)) return;
if (isAcceptableTime(dimension) || (ignoreDelay && timeValueCount !== 1)) return;

complain(decl, sourceIndex, value.length);
});
Expand Down

0 comments on commit b6d20ad

Please sign in to comment.