Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 11, 2024
1 parent 0edf4e9 commit 2ad307d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
linters-settings:
errcheck:
ignore: fmt:.*,io/ioutil:^Read.*
ignoretests: true
exclude-functions:
- github.com/fumiama/WireGold/helper.(*Writer).Write.*
- fmt:.*
- io/ioutil:^Read.*
- github.com/fumiama/WireGold/helper.(*Writer).(Write.*)
- github.com/fumiama/WireGold/upper/services/tunnel.(*Tunnel).(Write|Read)

goimports:
Expand Down
4 changes: 2 additions & 2 deletions gold/link/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (m *Me) AddPeer(cfg *PeerConfig) (l *Link) {
allowtrans: cfg.AllowTrans,
usezstd: cfg.UseZstd,
me: m,
mtu: uint16(cfg.MTU),
mturandomrange: uint16(cfg.MTURandomRange),
mtu: cfg.MTU,
mturandomrange: cfg.MTURandomRange,
}

if !cfg.NoPipe {
Expand Down
1 change: 1 addition & 0 deletions lower/nic.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (n *NIC) Close() error {
return n.ifce.Close()
}

// nolint: unparam
func execute(c string, args ...string) {
logrus.Printf("[lower] exec cmd: %v %v:", c, args)
cmd := exec.Command(c, args...)
Expand Down

0 comments on commit 2ad307d

Please sign in to comment.