Skip to content

Commit

Permalink
Fix: Refactor valueTimeCheck -> calcTimeValueCount
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaguchi1102 committed Sep 6, 2022
1 parent b6d20ad commit c71fb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/time-min-milliseconds/index.js
Expand Up @@ -70,7 +70,7 @@ const rule = (primary, secondaryOptions) => {

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

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

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

Expand All @@ -84,7 +84,7 @@ const rule = (primary, secondaryOptions) => {
* @param {number} valueTimeCount
* @returns {number}
*/
function valueTimeCheck(dimension, value, valueTimeCount) {
function calcTimeValueCount(dimension, value, valueTimeCount) {
const { unit } = dimension;

if (unit !== null) valueTimeCount++;
Expand Down

0 comments on commit c71fb9f

Please sign in to comment.