Skip to content

Commit

Permalink
Makefile: Remove some new linters and fix complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Nov 6, 2019
1 parent 966b3ff commit f8c239c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ lint:
--disable=errcheck \
--disable=gochecknoglobals \
--disable=funlen \
--disable=gocognit \
--disable=godox \
--disable=wsl \
--skip-dirs=internal \
./...

Expand Down
3 changes: 2 additions & 1 deletion renter/proto/renew.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"gitlab.com/NebulousLabs/Sia/crypto"
"gitlab.com/NebulousLabs/Sia/modules"
"gitlab.com/NebulousLabs/Sia/types"

"lukechampine.com/us/ed25519"
"lukechampine.com/us/hostdb"
"lukechampine.com/us/renterhost"
"lukechampine.com/us/ed25519"
)

// RenewContract negotiates a new file contract and initial revision for data
Expand Down
9 changes: 4 additions & 5 deletions renter/renterutil/hostset.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ func (set *HostSet) AddHost(c renter.Contract) {
if _, err := lh.s.Settings(); err == nil {
// connection is still open; we're done
return nil
} else {
// connection timed out, or some other error occurred; close our
// end (just in case) and fallthrough to the reconnection logic
lh.s.Close()
lh.s = nil
}
// connection timed out, or some other error occurred; close our
// end (just in case) and fallthrough to the reconnection logic
lh.s.Close()
lh.s = nil
}
hostIP, err := set.hkr.ResolveHostKey(c.HostKey)
if err != nil {
Expand Down

0 comments on commit f8c239c

Please sign in to comment.