diff options
| author | Shulhan <ms@kilabit.info> | 2024-05-04 15:03:41 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-05-04 15:17:04 +0700 |
| commit | a129da5d8790b25de11fa270b411ad5aca6fa892 (patch) | |
| tree | df5001c739449666864725ab2dada05f5977a80b | |
| parent | de4da5d99646d9daf494915901211348f9a3e1db (diff) | |
| download | pakakeh.go-a129da5d8790b25de11fa270b411ad5aca6fa892.tar.xz | |
lib: comply with linter recommendations
| -rw-r--r-- | lib/dns/resource_record.go | 2 | ||||
| -rw-r--r-- | lib/http/multipart_form_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/dns/resource_record.go b/lib/dns/resource_record.go index 4f620222..ff8fe157 100644 --- a/lib/dns/resource_record.go +++ b/lib/dns/resource_record.go @@ -206,7 +206,7 @@ func (rr *ResourceRecord) unpack(packet []byte, startIdx uint) (x uint, err erro rr.rdlen = libbytes.ReadUint16(packet, x) x += 2 - var lenXRdata uint = x + uint(rr.rdlen) + var lenXRdata = x + uint(rr.rdlen) if lenPacket < lenXRdata { return x, fmt.Errorf("%s: %s %d: packet length %d smaller than index+rdata %d+%d (%d)", logp, rr.Name, rr.Type, lenPacket, x, rr.rdlen, lenXRdata) diff --git a/lib/http/multipart_form_test.go b/lib/http/multipart_form_test.go index 8562acc7..c76ff0e5 100644 --- a/lib/http/multipart_form_test.go +++ b/lib/http/multipart_form_test.go @@ -17,8 +17,8 @@ import ( func TestGenerateFormData(t *testing.T) { type testcase struct { form multipart.Form - tagOutput string field2filename map[string]string + tagOutput string } rand.Reader = mock.NewRandReader([]byte(`randomseed`)) |
