Skip to content

Commit b3617b9

Browse files
authored
Merge pull request #7 from nametake/fix-cmd-output
Fixed CombinedOutput to Output
2 parents 56084f3 + e1a3471 commit b3617b9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ repos:
1717
- id: go-fmt
1818
# - id: go-lint
1919
- id: golangci-lint
20-
args: [--enable-all, --disable, 'lll,wsl']

handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (h *langHandler) lint(uri DocumentURI) ([]Diagnostic, error) {
3939
cmd := exec.Command(h.command[0], h.command[1:]...)
4040
cmd.Dir = dir
4141

42-
b, err := cmd.CombinedOutput()
42+
b, err := cmd.Output()
4343
if err == nil {
4444
return diagnostics, nil
4545
}

0 commit comments

Comments
 (0)