Skip to content

Commit

Permalink
feat: no lint for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kikihakiem committed Feb 28, 2024
1 parent 3af845e commit 94b45f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/transport-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
args: --out-format checkstyle:lint-report.xml,github-actions --timeout 2m
args: --out-format checkstyle:lint-report.xml,github-actions --timeout 2m --tests=false
working-directory: './transport/http'
- name: test
run: go test -v -timeout 30s -count=1 ./... -coverprofile=test-report.out
Expand Down
2 changes: 1 addition & 1 deletion transport/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func DefaultErrorEncoder(_ context.Context, w http.ResponseWriter, err error) {
code = sc.StatusCode()
}
w.WriteHeader(code)
w.Write(body)
w.Write(body) //nolint:errcheck
}

// StatusCoder is checked by DefaultErrorEncoder. If an error value implements
Expand Down

0 comments on commit 94b45f7

Please sign in to comment.