mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Removed empty line, multi return args
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user