Skip to content

Commit 6d458ce

Browse files
committed
f
1 parent bc9e015 commit 6d458ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/queries/role.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ function makeRoleSelector(role, exact, customNormalizer) {
194194

195195
// Current transpilation config sometimes assumes `...` is always applied to arrays.
196196
// `...` is equivalent to `Array.prototype.concat` for arrays.
197-
// If you remove the seemingly redundant array conversion, make sure every transpilation target retains the `...` in favor of `Array.prototype.concat`.
198-
return [explicitRoleSelector, ...Array.from(implicitRoleSelectors)].join(',')
197+
// If you replace this code with `[explicitRoleSelector, ...implicitRoleSelectors]`, make sure every transpilation target retains the `...` in favor of `Array.prototype.concat`.
198+
return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(',')
199199
}
200200

201201
const getMultipleError = (c, role, {name} = {}) => {

0 commit comments

Comments
 (0)