Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Gofumpt twcc and add back start := start to avoid using range variable
in function literal (copies start instead).
  • Loading branch information
mengelbart authored and Sean-Der committed Nov 23, 2021
1 parent 937d3cd commit 1e61d99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ adamroach <[email protected]>
aler9 <[email protected]>
Antoine Baché <[email protected]>
Atsushi Watanabe <[email protected]>
boks1971 <[email protected]>
Jonathan Müller <[email protected]>
Mathis Engelbart <[email protected]>
Sean DuBois <[email protected]>
2 changes: 2 additions & 0 deletions pkg/nack/receive_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (

func TestReceivedBuffer(t *testing.T) {
for _, start := range []uint16{0, 1, 127, 128, 129, 511, 512, 513, 32767, 32768, 32769, 65407, 65408, 65409, 65534, 65535} {
start := start

t.Run(fmt.Sprintf("StartFrom%d", start), func(t *testing.T) {
rl, err := newReceiveLog(128)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions pkg/twcc/header_extension_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

// HeaderExtensionInterceptorFactory is a interceptor.Factory for a HeaderExtensionInterceptor
type HeaderExtensionInterceptorFactory struct {
}
type HeaderExtensionInterceptorFactory struct{}

// NewInterceptor constructs a new HeaderExtensionInterceptor
func (h *HeaderExtensionInterceptorFactory) NewInterceptor(id string) (interceptor.Interceptor, error) {
Expand Down

0 comments on commit 1e61d99

Please sign in to comment.