From 76d4af891f048235cab262de4e52d3989547d050 Mon Sep 17 00:00:00 2001 From: Jofkos Date: Sun, 20 Dec 2015 21:13:12 +0100 Subject: [PATCH] Removed empty line, multi return args --- models/wiki.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/wiki.go b/models/wiki.go index 9c6292cbaa8..e3eb1f68077 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -12,7 +12,6 @@ import ( "path/filepath" "strings" "sync" - "net/url" "github.com/Unknwon/com" @@ -71,8 +70,9 @@ func ToWikiPageURL(name string) string { } // ToWikiPageName formats a URL back to corresponding wiki page name. -func ToWikiPageName(name string) string { - return url.QueryUnescape(strings.Replace(name, "-", " ", -1)) +func ToWikiPageName(urlString string) string { + name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1)) + return name } // WikiCloneLink returns clone URLs of repository wiki.