mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Clean code
This commit is contained in:
parent
ad3eaedd71
commit
fbfbe1b0ce
1 changed files with 2 additions and 4 deletions
|
|
@ -567,9 +567,7 @@ const initKernel = (initData) => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const kernelName = 'win32' === process.platform
|
const kernelName = 'win32' === process.platform ? 'SiYuan-Kernel.exe' : 'SiYuan-Kernel'
|
||||||
? 'SiYuan-Kernel.exe'
|
|
||||||
: 'SiYuan-Kernel'
|
|
||||||
const kernelPath = path.join(appDir, 'kernel', kernelName)
|
const kernelPath = path.join(appDir, 'kernel', kernelName)
|
||||||
if (!fs.existsSync(kernelPath)) {
|
if (!fs.existsSync(kernelPath)) {
|
||||||
showErrorWindow('⚠️ 内核文件丢失 Kernel is missing',
|
showErrorWindow('⚠️ 内核文件丢失 Kernel is missing',
|
||||||
|
|
@ -663,7 +661,7 @@ const initKernel = (initData) => {
|
||||||
} finally {
|
} finally {
|
||||||
count++
|
count++
|
||||||
if (64 < count) {
|
if (64 < count) {
|
||||||
writeLog('get kernel port failed [pid=' + kernelProcessPid + '], try to use 6806')
|
writeLog('get kernel port failed [pid=' + kernelProcessPid + ']')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue