mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -201,7 +201,7 @@ function getStartOfTheWeek(date, startOfTheWeek) {
|
||||
diff = date.getDate() - day;
|
||||
}
|
||||
else {
|
||||
throw new Error("Unrecognized start of the week " + startOfTheWeek);
|
||||
throw new Error(`Unrecognized start of the week ${startOfTheWeek}`);
|
||||
}
|
||||
|
||||
return new Date(date.setDate(diff));
|
||||
|
||||
Reference in New Issue
Block a user