Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Feb 4, 2025
1 parent aef55c4 commit ac051e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion store/heightsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (hs *heightSub) SetHeight(height uint64) {
}

hs.heightSubsLk.Lock()
defer hs.heightSubsLk.Unlock() //nolint:gocritic we have a return below
defer hs.heightSubsLk.Unlock() //nolint:gocritic // we have a return below

for ; curr <= height; curr++ {
hs.notify(curr, true)
Expand Down
3 changes: 1 addition & 2 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (s *Store[H]) Height() uint64 {
return s.heightSub.Height()
}

func (s *Store[H]) Head(ctx context.Context, _ ...header.HeadOption[H]) (H, error) {
func (s *Store[H]) Head(_ context.Context, _ ...header.HeadOption[H]) (H, error) {
if head := s.contiguousHead.Load(); head != nil {
return *head, nil
}
Expand Down Expand Up @@ -324,7 +324,6 @@ func (s *Store[H]) Append(ctx context.Context, headers ...H) error {
// collect valid headers
verified := make([]H, 0, lh)
for i, h := range headers {

err = head.Verify(h)
if err != nil {
var verErr *header.VerifyError
Expand Down

0 comments on commit ac051e4

Please sign in to comment.