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