From 84feb016f5934d271bd00f965841072e56e580e3 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Tue, 9 Jan 2018 19:40:05 +0100 Subject: Remove useless fmt.Errorf("%v", err) (#3337) --- routers/user/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers') diff --git a/routers/user/home.go b/routers/user/home.go index 01a1068134..9d42bb0ae6 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -310,7 +310,7 @@ func Issues(ctx *context.Context) { showRepos := models.RepositoryListOfMap(showReposMap) sort.Sort(showRepos) if err = showRepos.LoadAttributes(); err != nil { - ctx.Handle(500, "LoadAttributes", fmt.Errorf("%v", err)) + ctx.Handle(500, "LoadAttributes", err) return } -- cgit v1.2.3