aboutsummaryrefslogtreecommitdiff
path: root/cmp/cmpopts/errors_go113.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmp/cmpopts/errors_go113.go')
-rw-r--r--cmp/cmpopts/errors_go113.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/cmp/cmpopts/errors_go113.go b/cmp/cmpopts/errors_go113.go
deleted file mode 100644
index 8eb2b84..0000000
--- a/cmp/cmpopts/errors_go113.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2021, The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build go1.13
-// +build go1.13
-
-package cmpopts
-
-import "errors"
-
-func compareErrors(x, y interface{}) bool {
- xe := x.(error)
- ye := y.(error)
- return errors.Is(xe, ye) || errors.Is(ye, xe)
-}