mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -66,7 +66,7 @@ function isNoteType(obj) {
|
||||
const noteTypes = noteTypeService.getNoteTypeNames();
|
||||
|
||||
if (!noteTypes.includes(obj)) {
|
||||
return `'${obj}' is not a valid note type, allowed types are: ` + noteTypes.join(", ");
|
||||
return `'${obj}' is not a valid note type, allowed types are: ${noteTypes.join(", ")}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user