lint: no return outside function
This commit is contained in:
parent
dd8166f2ab
commit
f61560d4cf
1 changed files with 6 additions and 4 deletions
|
|
@ -20,8 +20,6 @@ function openDocs() {
|
|||
|
||||
}
|
||||
|
||||
if (settings.read('docs')) return openDocs()
|
||||
|
||||
function nodeMode() {
|
||||
|
||||
if (!settings.read('no-gui')) {
|
||||
|
|
@ -153,7 +151,7 @@ function stopServerProcess() {
|
|||
closed = 0
|
||||
|
||||
if (toClose.length === 0) serverProcess.kill()
|
||||
|
||||
|
||||
for (var w of toClose) {
|
||||
w.on('closed', ()=>{
|
||||
closed++
|
||||
|
|
@ -232,7 +230,11 @@ function startLauncher() {
|
|||
}
|
||||
|
||||
|
||||
if (node || (settings.cli && settings.read('no-gui'))) {
|
||||
if (settings.read('docs')) {
|
||||
|
||||
openDocs()
|
||||
|
||||
} else if (node || (settings.cli && settings.read('no-gui'))) {
|
||||
|
||||
// node mode: minimal server startup
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue