Skip to content

Commit

Permalink
Fix goreturns error microsoft#613 microsoft#630
Browse files Browse the repository at this point in the history
  • Loading branch information
halfcrazy committed Dec 26, 2017
1 parent 6b0fd86 commit ea178b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Formatter {
}

// Fix for https://github.com/Microsoft/vscode-go/issues/613 and https://github.com/Microsoft/vscode-go/issues/630
if (formatTool === 'goimports') {
if (formatTool === 'goimports' || formatTool === 'goreturns') {
formatFlags.push('-srcdir', filename);
}

Expand Down

0 comments on commit ea178b3

Please sign in to comment.