From 7dc237c7aac2fa02879ce29fa7ef8aa0462e4a30 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 19 Jun 2018 16:16:02 +0300 Subject: [PATCH] Fix comment --- routers/api/v1/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index cf03283a5..9dac8e70d 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -192,7 +192,7 @@ func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption) { return } } else { - // setting labels is only allowed if user is writter + // setting labels is not allowed if user is not a writer form.Labels = make([]int64, 0) }