aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-24 05:33:30 +0000
committerGravatar Runxi Yu2026-06-24 05:33:30 +0000
commit4f22454522f02e1cf6c09f24cbf3ee558064ecdc (patch)
treec712c0d16a40e9698d65e21010c8bb67191475e6
parentBasic lint fix (diff)
internal/adler32: Nolint unused
-rw-r--r--internal/adler32/adler32_generic.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/adler32/adler32_generic.go b/internal/adler32/adler32_generic.go
index 08ab483f..f6d53f5c 100644
--- a/internal/adler32/adler32_generic.go
+++ b/internal/adler32/adler32_generic.go
@@ -5,19 +5,19 @@ const (
Size = 4
// mod is the largest prime that is less than 65536.
- mod = 65521
+ mod = 65521 //nolint:unused
// nmax is the largest n such that
// 255 * n * (n+1) / 2 + (n+1) * (mod-1) <= 2^32-1.
// It is mentioned in RFC 1950 (search for "5552").
- nmax = 5552
+ nmax = 5552 //nolint:unused
// binary representation compatible with standard library.
- magic = "adl\x01"
- marshaledSize = len(magic) + 4
+ magic = "adl\x01" //nolint:unused
+ marshaledSize = len(magic) + 4 //nolint:unused
)
// Add p to the running checksum d.
-func update(d uint32, p []byte) uint32 {
+func update(d uint32, p []byte) uint32 { //nolint:unused
s1, s2 := d&0xffff, d>>16
for len(p) > 0 {