From 8d676eb59761a21584ab9818feb6bc0eb8523fd3 Mon Sep 17 00:00:00 2001 From: Delweng Zheng Date: Sat, 16 Jun 2018 11:22:05 +0800 Subject: [PATCH] signer: remove useless errorWrapper --- signer/core/api.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/signer/core/api.go b/signer/core/api.go index 1372646de02f..9a2a49ccc6ed 100644 --- a/signer/core/api.go +++ b/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.