Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch: Remove unused local variable
`make lint` complains about an unused variable. Since 'n' is only useful when `err` is not `nil`, it should be harmless to remove it. https://pkg.go.dev/io#ReadFull > On return, n == len(buf) if and only if err == nil This fixes this error: pkg/tap/switch.go:196:3: ineffectual assignment to n (ineffassign) n, err := io.ReadFull(conn, sizeBuf) ^
- Loading branch information