Skip to content

Commit

Permalink
code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowosie committed Oct 1, 2024
1 parent e3c0e8c commit a807798
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions p2p/snap_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,8 @@ func (s *SnapSyncer) runClassRangeWorker(ctx context.Context) error {
ResponseIter:
for response := range classIter {
if response == nil {
if response == nil {
s.log.Errorw("contract range respond with nil response")
continue
}
s.log.Errorw("contract range respond with nil response")
continue
}

var classes []*spec.Class
Expand All @@ -451,7 +449,7 @@ func (s *SnapSyncer) runClassRangeWorker(ctx context.Context) error {
continue
}

if classes == nil || len(classes) == 0 {
if len(classes) == 0 {
s.log.Errorw("class range respond with empty classes")
continue
}
Expand Down

0 comments on commit a807798

Please sign in to comment.