diff options
Diffstat (limited to 'routers/web/repo/topic.go')
-rw-r--r-- | routers/web/repo/topic.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go index 810b241e28..a6a7ac6c8e 100644 --- a/routers/web/repo/topic.go +++ b/routers/web/repo/topic.go @@ -22,8 +22,8 @@ func TopicsPost(ctx *context.Context) { return } - var topics = make([]string, 0) - var topicsStr = ctx.FormTrim("topics") + topics := make([]string, 0) + topicsStr := ctx.FormTrim("topics") if len(topicsStr) > 0 { topics = strings.Split(topicsStr, ",") } |