lib: enforce use of trailing commas for functions

PR-URL: https://github.com/nodejs/node/pull/46629
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
Antoine du Hamel 2023-02-14 18:45:16 +01:00 committed by GitHub
parent 3acdeb1f7a
commit fe514bf960
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
109 changed files with 389 additions and 389 deletions

View file

@ -98,7 +98,7 @@ const validateInteger = hideStackFrames(
throw new ERR_OUT_OF_RANGE(name, 'an integer', value);
if (value < min || value > max)
throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
}
},
);
/**
@ -123,7 +123,7 @@ const validateInt32 = hideStackFrames(
if (value < min || value > max) {
throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
}
}
},
);
/**
@ -473,7 +473,7 @@ function validateLinkHeaderFormat(value, name) {
throw new ERR_INVALID_ARG_VALUE(
name,
value,
'must be an array or string of format "</styles.css>; rel=preload; as=style"'
'must be an array or string of format "</styles.css>; rel=preload; as=style"',
);
}
}
@ -516,7 +516,7 @@ function validateLinkHeaderValue(hints) {
throw new ERR_INVALID_ARG_VALUE(
'hints',
hints,
'must be an array or string of format "</styles.css>; rel=preload; as=style"'
'must be an array or string of format "</styles.css>; rel=preload; as=style"',
);
}