From 0c8d797d466d7feda14006234d148139ca91c7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 16 Apr 2024 00:19:28 +0800 Subject: [PATCH] Remove bad Is(error) implemetation for DatagramTooLargeError --- errors.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/errors.go b/errors.go index fda3c9247cc..602089c935a 100644 --- a/errors.go +++ b/errors.go @@ -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" }