Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Jan 29, 2025
1 parent 79792c9 commit 956cfda
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/catchpointdump/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,10 @@ func loadCatchpointFileHeaderFromRelay(relay string, netName string, round int)
return fileHeader, nil

Check warning on line 264 in cmd/catchpointdump/info.go

View check run for this annotation

Codecov / codecov/patch

cmd/catchpointdump/info.go#L264

Added line #L264 was not covered by tests
}
// If not content.json, skip over this tar chunk
skipBytes := hdr.Size
_, err = io.Copy(io.Discard, tarReader)
if err != nil {
return fileHeader, err

Check warning on line 269 in cmd/catchpointdump/info.go

View check run for this annotation

Codecov / codecov/patch

cmd/catchpointdump/info.go#L267-L269

Added lines #L267 - L269 were not covered by tests
}
// The above copy() should fully consume the chunk, but if partial,
// we might do a final io.CopyN. Usually not needed if tarReader is well-behaved.
if skipBytes > 0 {
// a no-op in principle, but just to illustrate we might handle partial reads
}
}
// If we exit the loop, we never found content.json
return fileHeader, nil

Check warning on line 273 in cmd/catchpointdump/info.go

View check run for this annotation

Codecov / codecov/patch

cmd/catchpointdump/info.go#L273

Added line #L273 was not covered by tests
Expand Down

0 comments on commit 956cfda

Please sign in to comment.