Skip to content

Commit

Permalink
please the linter gods
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Feb 18, 2025
1 parent fa7ae47 commit 402a4f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ jobs:

- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
shell: bash

- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion market/libp2p/libp2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func (p *DealProvider) checkMinerInfos(ctx context.Context, sender *message.Send
}

var chainma multiaddr.Multiaddr
if mi.Multiaddrs != nil && len(mi.Multiaddrs) == 1 { // == 1 because if it's not then we really have no reason to check further
if len(mi.Multiaddrs) == 1 { // == 1 because if it's not then we really have no reason to check further
chainma, err = multiaddr.NewMultiaddrBytes(mi.Multiaddrs[0])
if err != nil {
log.Errorw("failed to parse miner multiaddr", "miner", m, "error", err)
Expand Down

0 comments on commit 402a4f0

Please sign in to comment.