summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJofkos <JofkosDE@gmail.com>2015-12-20 21:13:12 +0100
committerJofkos <JofkosDE@gmail.com>2015-12-20 21:13:12 +0100
commit76d4af891f048235cab262de4e52d3989547d050 (patch)
tree0bba8f2c3f63eced1c586613ffa8762326a02483
parent072109594425a7f7195111e2a3bc7987429505e0 (diff)
downloadgitea-76d4af891f048235cab262de4e52d3989547d050.tar.gz
gitea-76d4af891f048235cab262de4e52d3989547d050.zip
Removed empty line, multi return args
-rw-r--r--models/wiki.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/wiki.go b/models/wiki.go
index 9c6292cbaa..e3eb1f6807 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.