From fdaaa1381b771f86798b5f856ef7a7b0c049e6c6 Mon Sep 17 00:00:00 2001 From: "Eric L. Frederich" Date: Sat, 30 Nov 2013 22:40:21 -0500 Subject: [PATCH] Remove compiler error I got an error "function ends without a return statement" on go1.0.2 --- error.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/error.go b/error.go index 7568505..2537a55 100644 --- a/error.go +++ b/error.go @@ -49,7 +49,6 @@ func (err ErrNo) Error() string { func (err Error) Error() string { if err.err != "" { return err.err - } else { - return errorString(err) } + return errorString(err) }