aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue_lock.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue_lock.go')
-rw-r--r--routers/web/repo/issue_lock.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go
index 1d5fc8a5f3..bc8aabd90b 100644
--- a/routers/web/repo/issue_lock.go
+++ b/routers/web/repo/issue_lock.go
@@ -24,11 +24,6 @@ func LockIssue(ctx *context.Context) {
return
}
- if !form.HasValidReason() {
- ctx.JSONError(ctx.Tr("repo.issues.lock.unknown_reason"))
- return
- }
-
if err := issues_model.LockIssue(ctx, &issues_model.IssueLockOptions{
Doer: ctx.Doer,
Issue: issue,