Skip to content

Commit

Permalink
整理
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncake9527 committed Sep 24, 2024
1 parent f53e45d commit 5d8dac2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xerrors/xerror/xerror_api_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func HasStack(err error) bool {
return ok
}

// Equal 错误对象比较。
func Equal(err, target error) bool {
if err == target {
return true
Expand All @@ -86,7 +85,6 @@ func Equal(err, target error) bool {
return false
}

// Is 包含判断。
func Is(err, target error) bool {
if err.Error() == target.Error() {
return true
Expand Down

0 comments on commit 5d8dac2

Please sign in to comment.