mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
chore(prettier): fix all files
This commit is contained in:
@@ -9,9 +9,8 @@ function getBackendLog() {
|
||||
const file = `${LOG_DIR}/trilium-${dateUtils.localNowDate()}.log`;
|
||||
|
||||
try {
|
||||
return fs.readFileSync(file, 'utf8');
|
||||
}
|
||||
catch (e) {
|
||||
return fs.readFileSync(file, "utf8");
|
||||
} catch (e) {
|
||||
// most probably the log file does not exist yet - https://github.com/zadam/trilium/issues/1977
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user