Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 4b92e21

Browse files
style(slider): Avoid escaping the backtick character within a template string.
PiperOrigin-RevId: 437068966
1 parent f31a833 commit 4b92e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mdc-slider/foundation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,14 +1089,14 @@ export class MDCSliderFoundation extends MDCFoundation<MDCSliderAdapter> {
10891089
attributeValue: string|null, attributeName: string) {
10901090
if (attributeValue === null) {
10911091
throw new Error(
1092-
`MDCSliderFoundation: \`${attributeName}\` must be non-null.`);
1092+
'MDCSliderFoundation: `' + attributeName + '` must be non-null.');
10931093
}
10941094

10951095
const value = Number(attributeValue);
10961096
if (isNaN(value)) {
10971097
throw new Error(
1098-
`MDCSliderFoundation: \`${attributeName}\` value is ` +
1099-
`\`${attributeValue}\`, but must be a number.`);
1098+
'MDCSliderFoundation: `' + attributeName + '` value is `' +
1099+
attributeValue + '`, but must be a number.');
11001100
}
11011101

11021102
return value;

0 commit comments

Comments
 (0)