Browse Source

signer: remove useless errorWrapper (#17003)

Wenbiao Zheng 7 năm trước cách đây
mục cha
commit
f1986f86f2
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  1. 0 9
      signer/core/api.go

+ 0 - 9
signer/core/api.go

@@ -189,15 +189,6 @@ type (
 
 var ErrRequestDenied = errors.New("Request denied")
 
-type errorWrapper struct {
-	msg string
-	err error
-}
-
-func (ew errorWrapper) String() string {
-	return fmt.Sprintf("%s\n%s", ew.msg, ew.err)
-}
-
 // NewSignerAPI creates a new API that can be used for Account management.
 // ksLocation specifies the directory where to store the password protected private
 // key that is generated when a new Account is created.