add the exhaustive linter

This commit is contained in:
Marten Seemann 2020-08-20 14:03:42 +07:00
parent 2781606ded
commit 55a07c34ee
16 changed files with 25 additions and 0 deletions

View file

@ -268,6 +268,7 @@ func (p *TransportParameters) readNumericTransportParameter(
if remainingLen-r.Len() != expectedLen {
return fmt.Errorf("inconsistent transport parameter length for %d", paramID)
}
//nolint:exhaustive // This only covers the numeric transport parameters.
switch paramID {
case initialMaxStreamDataBidiLocalParameterID:
p.InitialMaxStreamDataBidiLocal = protocol.ByteCount(val)