Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Liang Dingfbfbe1b0ce94
diff --git a/app/electron/main.js b/app/electron/main.js
index 9083cf7613..23a691a32f 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -567,9 +567,7 @@ const initKernel = (initData) => {
},
})
- const kernelName = 'win32' === process.platform
- ? 'SiYuan-Kernel.exe'
- : 'SiYuan-Kernel'
+ const kernelName = 'win32' === process.platform ? 'SiYuan-Kernel.exe' : 'SiYuan-Kernel'
const kernelPath = path.join(appDir, 'kernel', kernelName)
if (!fs.existsSync(kernelPath)) {
showErrorWindow('⚠️ 内核文件丢失 Kernel is missing',
@@ -663,7 +661,7 @@ const initKernel = (initData) => {
} finally {
count++
if (64 < count) {
- writeLog('get kernel port failed [pid=' + kernelProcessPid + '], try to use 6806')
+ writeLog('get kernel port failed [pid=' + kernelProcessPid + ']')
return
}
}