make golint happier

This commit is contained in:
Marten Seemann
2018-03-02 16:58:19 +07:00
parent be2be3872f
commit a588b9e140
8 changed files with 38 additions and 28 deletions

View File

@@ -31,6 +31,7 @@ func (e *QuicError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode.String(), e.ErrorMessage)
}
// Timeout says if this error is a timeout.
func (e *QuicError) Timeout() bool {
switch e.ErrorCode {
case NetworkIdleTimeout,