mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-07 15:33:26 +00:00
Removed empty line, multi return args
This commit is contained in:
parent
0721095944
commit
76d4af891f
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
@ -71,8 +70,9 @@ func ToWikiPageURL(name string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToWikiPageName formats a URL back to corresponding wiki page name.
|
// ToWikiPageName formats a URL back to corresponding wiki page name.
|
||||||
func ToWikiPageName(name string) string {
|
func ToWikiPageName(urlString string) string {
|
||||||
return url.QueryUnescape(strings.Replace(name, "-", " ", -1))
|
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
|
||||||
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
// WikiCloneLink returns clone URLs of repository wiki.
|
// WikiCloneLink returns clone URLs of repository wiki.
|
||||||
|
|
Loading…
Reference in a new issue