mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -694,7 +694,7 @@ class ConsistencyChecks {
|
||||
|
||||
const tables = [ "notes", "note_revisions", "branches", "attributes", "etapi_tokens" ];
|
||||
|
||||
log.info("Table counts: " + tables.map(tableName => getTableRowCount(tableName)).join(", "));
|
||||
log.info(`Table counts: ${tables.map(tableName => getTableRowCount(tableName)).join(", ")}`);
|
||||
}
|
||||
|
||||
async runChecks() {
|
||||
@@ -736,11 +736,11 @@ function getBlankContent(isProtected, type, mime) {
|
||||
}
|
||||
|
||||
function logFix(message) {
|
||||
log.info("Consistency issue fixed: " + message);
|
||||
log.info(`Consistency issue fixed: ${message}`);
|
||||
}
|
||||
|
||||
function logError(message) {
|
||||
log.info("Consistency error: " + message);
|
||||
log.info(`Consistency error: ${message}`);
|
||||
}
|
||||
|
||||
function runPeriodicChecks() {
|
||||
|
||||
Reference in New Issue
Block a user