vscode: refactor inverted ternaries to if statements as per @matklad

This commit is contained in:
Veetaha 2020-02-09 13:45:06 +02:00
parent 34241b9af9
commit 7a09274e52
2 changed files with 6 additions and 2 deletions

View file

@ -97,7 +97,9 @@ export class Config {
const prebuiltBinaryName = Config.prebuiltLangServerFileName(process.platform);
return !prebuiltBinaryName ? null : {
if (!prebuiltBinaryName) return null;
return {
type: BinarySource.Type.GithubRelease,
dir: ctx.globalStoragePath,
file: prebuiltBinaryName,