Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ linters:
- maintidx # maintidx measures the maintainability index of each function.
- makezero # Finds slice declarations with non-zero initial length
- misspell # Finds commonly misspelled English words in comments
- modernize # Replace and suggests simplifications to code
- nakedret # Finds naked returns in functions greater than a specified function length
- nestif # Reports deeply nested if statements
- nilerr # Finds the code that returns nil even if it checks that the error is not nil.
Expand Down
5 changes: 2 additions & 3 deletions transport_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: MIT

//go:build !js
// +build !js

package quic

Expand Down Expand Up @@ -108,8 +107,8 @@ func TestTransport_E2E(t *testing.T) {

// sent side
var buf [2]byte
for i := 0; i < count; i++ {
testData := bytes.Repeat([]byte(fmt.Sprintf("%04d", i)), repeat)
for i := range count {
testData := bytes.Repeat(fmt.Appendf(nil, "%04d", i), repeat)
binary.BigEndian.PutUint16(buf[:], uint16(i)) //nolint:gosec
assert.GreaterOrEqual(t, len(testData), 2)
testData = append(testData, buf[0], buf[1]) //nolint:gosec
Expand Down
Loading