Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncake9527 committed Dec 6, 2024
1 parent 65d94c7 commit 0a6ebaf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions xerrors/xerror/xerror_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ func NewC(code int, text string) error {
code: code,
}
}
func NewC(code int,text string) error {
return &Error{
stack: callers(),
text: text,
code: xcode.CodeNil,
}
}

// Newf 用于创建一个自定义文本错误带参数信息的 error 对象,并包含堆栈信息。
func Newf(format string, args ...any) error {
Expand Down

0 comments on commit 0a6ebaf

Please sign in to comment.