always use template strings instead of string concatenation

This commit is contained in:
zadam
2022-12-21 15:19:05 +01:00
parent ea006993f6
commit 1b24276a4a
154 changed files with 433 additions and 437 deletions

View File

@@ -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() {