Skip to content

Commit 6660bf2

Browse files
committed
Format
1 parent d8e1d7a commit 6660bf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/server.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ function onMessage(msg: m.Message) {
440440
} else {
441441
let bscExePath1 = path.join(bscExeDir, c.bscExeReScriptPartialPath);
442442
let bscExePath2 = path.join(bscExeDir, c.bscExePartialPath);
443-
let resolvedBscExePath = fs.existsSync(bscExePath1) ? bscExePath1 : bscExePath2;
443+
let resolvedBscExePath = fs.existsSync(bscExePath1)
444+
? bscExePath1
445+
: bscExePath2;
444446
// code will always be defined here, even though technically it can be undefined
445447
let code = getOpenedFileContent(params.textDocument.uri);
446448
let formattedResult = utils.formatUsingValidBscExePath(

0 commit comments

Comments
 (0)