index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
internal
/
context
/
repo.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'internal/context/repo.go')
-rw-r--r--
internal/context/repo.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/repo.go b/internal/context/repo.go
index e08913b6..55759be8 100644
--- a/
internal/context/repo.go
+++ b/
internal/context/repo.go
@@ -96,7 +96,7 @@ func (r *Repository) Editorconfig() (*editorconfig.Editorconfig, error) {
}
// MakeURL accepts a string or url.URL as argument and returns escaped URL prepended with repository URL.
-func (r *Repository) MakeURL(location interface{}) string {
+func (r *Repository) MakeURL(location any) string {
switch location := location.(type) {
case string:
tempURL := url.URL{