Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsingbx committed Nov 21, 2023
1 parent 38dcb16 commit c19d5ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/getCurrentGopRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { getCurrentGopRoot as utilGetCurrentGopRoot } from '../util';
export const getCurrentGopRoot: CommandFactory = () => {
return () => {
const goRoot = utilGetCurrentGopRoot();
let msg = `${goRoot} is the current GOPROOT.`;
const msg = `${goRoot} is the current GOPROOT.`;
vscode.window.showInformationMessage(msg);
return goRoot;
};
}
};
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export function substituteEnv(input: string): string {
}

export function getCurrentGopRoot(workspaceUri?: vscode.Uri): string {

Check warning on line 512 in src/util.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest stable

'workspaceUri' is defined but never used
const buf = cp.execSync("gop env GOPROOT");
const buf = cp.execSync('gop env GOPROOT');
return buf.toString();
}

Expand Down

0 comments on commit c19d5ee

Please sign in to comment.