Skip to content

Commit

Permalink
Remove bad Is(error) implemetation for DatagramTooLargeError
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Apr 15, 2024
1 parent b4420fd commit 0c8d797
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,4 @@ type DatagramTooLargeError struct {
PeerMaxDatagramFrameSize int64
}

func (e *DatagramTooLargeError) Is(target error) bool {
_, ok := target.(*DatagramTooLargeError)
return ok
}

func (e *DatagramTooLargeError) Error() string { return "DATAGRAM frame too large" }

0 comments on commit 0c8d797

Please sign in to comment.