Skip to content

Commit f7d2789

Browse files
committed
Fix go report card warnings.
1 parent 62bdc28 commit f7d2789

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

internal/pkg/blk/blk.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ func CompressToBlk(src []byte, cmp compress.Compressor, bsz int, checksum bool,
7474
// If the src data is uncompressable for whatever reason,
7575
// write out the src block as non-compressed and keep on truckin'
7676
n = 0
77-
err = nil
7877
}
7978

8079
var blkSz descriptor.DataBlockSize

internal/pkg/blk/frame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
type FrameReader struct {
1414
rdr io.Reader // data source
15-
bsz int // blocksize as specifed in header
15+
bsz int // blocksize as specified in header
1616
srcSum uint32 // contains content checksum if last frame and enabled
1717
srcCheck bool // parse content checksum on EOF
1818
blkCheck bool // validate hash on blocks

internal/pkg/rdr/rdr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Reader struct {
2626

2727
// Construct a Reader to decompress the LZ4 Frame stream 'rdr'.
2828
//
29-
// Specify optional paramters in 'opts'.
29+
// Specify optional parameters in 'opts'.
3030
func NewReader(rdr io.Reader, o *opts.OptsT) *Reader {
3131
// Will escape
3232
return &Reader{

internal/test/samples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func LoadSample(t testing.TB, ty int) ([]byte, string) {
7575
return nil, ""
7676
}
7777

78-
// Return copy of the sample to allow maniuplation without corruption.
78+
// Return copy of the sample to allow manipulation without corruption.
7979

8080
func DupeSample(t testing.TB, ty int) ([]byte, string) {
8181
data, sha2 := LoadSample(t, ty)

internal/test/wr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ func TestWriteSkipFrame(t *testing.T) {
580580
}
581581
}
582582

583-
// Write intial skip frame
583+
// Write initial skip frame
584584
skip1 := []byte("skip1_block")
585585
writeSkip(&buf, 1, skip1)
586586

plz4_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Writer interface {
3333

3434
// Construct a Writer to compress an LZ4 frame into 'wr'.
3535
//
36-
// Specify optional paramters in 'opts'.
36+
// Specify optional parameters in 'opts'.
3737
func NewWriter(wr io.Writer, opts ...OptT) Writer {
3838
o := parseOpts(opts...)
3939

0 commit comments

Comments
 (0)