From 8ca14e210959b9316a4eed6e127de1eb775fda74 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 6 May 2014 16:28:52 -0400 Subject: Improve delete SSH key --- modules/auth/issue.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'modules/auth/issue.go') diff --git a/modules/auth/issue.go b/modules/auth/issue.go index 85be12d2..e8f8ac20 100644 --- a/modules/auth/issue.go +++ b/modules/auth/issue.go @@ -11,7 +11,6 @@ import ( "github.com/go-martini/martini" "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/middleware/binding" ) @@ -31,20 +30,6 @@ func (f *CreateIssueForm) Name(field string) string { } func (f *CreateIssueForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { - if req.Method == "GET" || errors.Count() == 0 { - return - } - data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) - data["HasError"] = true - AssignForm(f, data) - - if len(errors.Overall) > 0 { - for _, err := range errors.Overall { - log.Error("CreateIssueForm.Validate: %v", err) - } - return - } - validate(errors, data, f) } -- cgit v1.2.3