Skip to content

Commit 4e9428c

Browse files
committed
fmt
1 parent 5c32a09 commit 4e9428c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encoding/da.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,13 @@ func checkCompressedDataCompatibilityV7(data []byte) error {
497497
isLast = (data[0] & 1) == 1
498498
blkType := (data[0] >> 1) & 3
499499
var blkSize uint
500-
if blkType == 1 {// RLE Block
500+
if blkType == 1 { // RLE Block
501501
blkSize = 1
502502
} else {
503503
if blkType == 3 {
504504
return fmt.Errorf("encounter reserved block type at %v", data)
505505
}
506-
blkSize = (uint(data[2])*65536 + uint(data[1])*256 + uint(data[0])) >> 3
506+
blkSize = (uint(data[2])*65536 + uint(data[1])*256 + uint(data[0])) >> 3
507507
}
508508
if len(data) < 3+int(blkSize) {
509509
return fmt.Errorf("wrong data len {%d}, expect min {%d}", len(data), 3+blkSize)

0 commit comments

Comments
 (0)