Skip to content

Commit e3b6eaf

Browse files
ndajrNeemias Almeida
and
Neemias Almeida
authored
fix: add golangci-lint setup action and fix lint issue (#592)
Co-authored-by: Neemias Almeida <[email protected]>
1 parent f673320 commit e3b6eaf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/build.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
uses: actions/setup-go@v4
2121
with:
2222
go-version: ^1.22
23-
24-
- name: Build
25-
run: make build
23+
- name: Install golangci-lint
24+
uses: golangci/golangci-lint-action@v6
25+
with:
26+
version: v1.59
2627
- name: Install dependency
2728
run: if [ $(uname) == "Darwin" ]; then brew install gnu-sed ;fi
29+
- name: Build
30+
run: make build
2831
- name: Run unit tests
2932
run: go install github.com/go-delve/delve/cmd/dlv@latest && go test ./... -v -covermode=count -coverprofile=coverage.txt
3033
- name: Upload Coverage report to CodeCov

runner/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewProxy(cfg *cfgProxy) *Proxy {
3434
Addr: fmt.Sprintf(":%d", cfg.ProxyPort),
3535
},
3636
client: &http.Client{
37-
CheckRedirect: func(req *http.Request, via []*http.Request) error {
37+
CheckRedirect: func(_ *http.Request, _ []*http.Request) error {
3838
return http.ErrUseLastResponse
3939
},
4040
},

0 commit comments

Comments
 (0)