Skip to content

Commit

Permalink
Make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Dec 21, 2023
1 parent 0d26847 commit da8de49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/core/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ func (p *protoHandler) getPeersHandler(in json.RawMessage) (interface{}, error)
if err := json.Unmarshal(in, &req); err != nil {
return nil, err
}
key := req.Key.Key

key := req.Key.Key // nolint:unused

Check failure on line 287 in src/core/proto.go

View workflow job for this annotation

GitHub Actions / Lint

SA4006: this value of `key` is never used (staticcheck)

Check failure on line 287 in src/core/proto.go

View workflow job for this annotation

GitHub Actions / Lint

SA4006: this value of `key` is never used (staticcheck)
ch := make(chan []byte, 1)
p.sendGetPeersRequest(types.Addr(req.Key), func(info []byte) {
ch <- info
Expand Down Expand Up @@ -327,7 +328,7 @@ func (p *protoHandler) getDHTHandler(in json.RawMessage) (interface{}, error) {
if err := json.Unmarshal(in, &req); err != nil {
return nil, err
}
key := req.Key.Key
key := req.Key.Key // nolint:unused

Check failure on line 331 in src/core/proto.go

View workflow job for this annotation

GitHub Actions / Lint

SA4006: this value of `key` is never used (staticcheck)

Check failure on line 331 in src/core/proto.go

View workflow job for this annotation

GitHub Actions / Lint

SA4006: this value of `key` is never used (staticcheck)
ch := make(chan []byte, 1)
p.sendGetDHTRequest(types.Addr(req.Key), func(info []byte) {
ch <- info
Expand Down
3 changes: 0 additions & 3 deletions src/ipv6rwc/ipv6rwc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ipv6rwc

import (
"crypto/ed25519"
"errors"
"fmt"
"net"
Expand All @@ -20,8 +19,6 @@ import (

const keyStoreTimeout = 2 * time.Minute

type keyArray [ed25519.PublicKeySize]byte

type keyStore struct {
core *core.Core
address core.Address
Expand Down

0 comments on commit da8de49

Please sign in to comment.