Remove boolean fallback for ancient remark

Closes GH-284.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
This commit is contained in:
Jack Bates 2022-03-30 09:49:46 -07:00 committed by GitHub
parent 8e2a554c38
commit 0f6bb40ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,9 +83,7 @@ function coerce(name, value) {
/** @type {Array<unknown>} */
let result
if (typeof value === 'boolean') {
result = [value]
} else if (value === null || value === undefined) {
if (value === null || value === undefined) {
result = [1]
} else if (
Array.isArray(value) &&