forked from quic-go/quic-go
ci: enable the nolintlint linter (#5221)
This linter helps us find unneeded nolint statements.
This commit is contained in:
@@ -37,7 +37,6 @@ func IsValidVersion(v Version) bool {
|
||||
}
|
||||
|
||||
func (vn Version) String() string {
|
||||
//nolint:exhaustive
|
||||
switch vn {
|
||||
case VersionUnknown:
|
||||
return "unknown"
|
||||
|
||||
@@ -61,7 +61,6 @@ func (h *ExtendedHeader) Append(b []byte, v protocol.Version) ([]byte, error) {
|
||||
|
||||
var packetType uint8
|
||||
if v == protocol.Version2 {
|
||||
//nolint:exhaustive
|
||||
switch h.Type {
|
||||
case protocol.PacketTypeInitial:
|
||||
packetType = 0b01
|
||||
@@ -73,7 +72,6 @@ func (h *ExtendedHeader) Append(b []byte, v protocol.Version) ([]byte, error) {
|
||||
packetType = 0b00
|
||||
}
|
||||
} else {
|
||||
//nolint:exhaustive
|
||||
switch h.Type {
|
||||
case protocol.PacketTypeInitial:
|
||||
packetType = 0b00
|
||||
|
||||
Reference in New Issue
Block a user