Browse Source

Removed empty line, multi return args

tags/v1.2.0-rc1
Jofkos 9 years ago
parent
commit
45f4c69f74
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      models/wiki.go

+ 3
- 3
models/wiki.go View File

@@ -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.


Loading…
Cancel
Save