Skip to content

Commit facd88d

Browse files
committed
fix(template-no-aria-label-misuse): use strict equality for null/undefined check (self-lint)
1 parent f553e16 commit facd88d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/template-no-aria-label-misuse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function hasNonEmptyLabelAttr(node, name) {
133133
// A valueless attribute (e.g. `<div aria-label>`) carries no accessible
134134
// name. Treat it as empty — not as non-empty — so downstream checks don't
135135
// mistake it for an author-declared label.
136-
if (attr.value == null) {
136+
if (attr.value === null || attr.value === undefined) {
137137
return false;
138138
}
139139
if (attr.value.type === 'GlimmerTextNode') {

0 commit comments

Comments
 (0)