🎨 Clean code

This commit is contained in:
Liang Ding 2022-12-20 09:46:59 +08:00
parent ad3eaedd71
commit fbfbe1b0ce
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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
}
}