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."
);
}