File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ export class Config {
97
97
98
98
const prebuiltBinaryName = Config . prebuiltLangServerFileName ( process . platform ) ;
99
99
100
- return ! prebuiltBinaryName ? null : {
100
+ if ( ! prebuiltBinaryName ) return null ;
101
+
102
+ return {
101
103
type : BinarySource . Type . GithubRelease ,
102
104
dir : ctx . globalStoragePath ,
103
105
file : prebuiltBinaryName ,
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ export async function fetchLatestArtifactMetadata(
26
26
27
27
const artifact = response . assets . find ( artifact => artifact . name === artifactFileName ) ;
28
28
29
- return ! artifact ? null : {
29
+ if ( ! artifact ) return null ;
30
+
31
+ return {
30
32
releaseName : response . name ,
31
33
downloadUrl : artifact . browser_download_url
32
34
} ;
You can’t perform that action at this time.
0 commit comments