1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Use template strings, to reduce unnecessary verbosity in a few warn(...) calls in src/core/annotation.js

This commit is contained in:
Jonas Jenwald 2021-03-31 14:40:21 +02:00
parent 84d7cccb1d
commit 38acde8375

View file

@ -128,9 +128,7 @@ class AnnotationFactory {
return new ChoiceWidgetAnnotation(parameters);
}
warn(
'Unimplemented widget field type "' +
fieldType +
'", ' +
`Unimplemented widget field type "${fieldType}", ` +
"falling back to base field type."
);
return new WidgetAnnotation(parameters);
@ -186,9 +184,7 @@ class AnnotationFactory {
warn("Annotation is missing the required /Subtype.");
} else {
warn(
'Unimplemented annotation type "' +
subtype +
'", ' +
`Unimplemented annotation type "${subtype}", ` +
"falling back to base annotation."
);
}