Skip to content

Commit 0848ef7

Browse files
committed
chore: remove 'matches upstream' comment — describe behavior directly
1 parent e3a8d8b commit 0848ef7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/rules/template-require-media-caption.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ module.exports = {
5656

5757
// Any other dynamic value (e.g. muted="{{isMuted}}" → ConcatStatement,
5858
// or muted={{#if ...}}...{{/if}} → BlockStatement) → treat as exempt.
59-
// Matches upstream ember-template-lint behavior where MustacheStatement,
60-
// BlockStatement, or any non-text/non-"false" value is considered muted.
59+
// These cannot be statically evaluated, so assume the element may be muted.
6160
if (value.type !== 'GlimmerTextNode' && value.type !== 'GlimmerMustacheStatement') {
6261
return;
6362
}

0 commit comments

Comments
 (0)