From 07904f6ed897214dca86744fabe9f804c2d48cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 16 Apr 2024 00:23:51 +0800 Subject: [PATCH] Also remove Is(error) for StreamError --- errors.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/errors.go b/errors.go index 602089c935a..a5fa87b1e6f 100644 --- a/errors.go +++ b/errors.go @@ -49,11 +49,6 @@ type StreamError struct { Remote bool } -func (e *StreamError) Is(target error) bool { - _, ok := target.(*StreamError) - return ok -} - func (e *StreamError) Error() string { pers := "local" if e.Remote {