Skip to content

Commit

Permalink
fix: error sdk dir
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed May 12, 2022
1 parent 8b62627 commit 581f36f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export function queryGoSDK(): ModObject | null {
let version = arg0?.length === 2 ? arg0[0] : 'unknown';
let goRoot = arg1?.length === 2 ? arg1[0] : 'unknown';

// do somethings with linux/max
if (process.platform !== 'win32') {
version = version.substring(1, version.length - 1);
goRoot = goRoot.substring(1, goRoot.length - 1);
}

// The version number of a custom build may be unknown
let gI = version?.indexOf('go');
if (arg0?.length === 2 && gI !== -1) {
Expand Down

0 comments on commit 581f36f

Please sign in to comment.