diff --git a/errorf.go b/errorf.go index 7420ce3..d005273 100644 --- a/errorf.go +++ b/errorf.go @@ -5,8 +5,5 @@ import ( ) func Errorf(format string, a ...interface{}) error { - - var s string = fmt.Sprintf(format, a...) - - return Error(s) + return fmt.Errorf(format, a...) }