diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-08 22:12:05 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-08 22:12:05 -0400 |
commit | 09dba7d63edb0b34e62bf264077a66ef365638c9 (patch) | |
tree | 79edc241d84d85f55266c6b7fe798473958d0ed0 /modules/auth/apiv1 | |
parent | 3f4c040f3f7686f2534bf7e6f61877844b431e48 (diff) | |
download | gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.tar.gz gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.zip |
Clean names
Diffstat (limited to 'modules/auth/apiv1')
-rw-r--r-- | modules/auth/apiv1/miscellaneous.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/apiv1/miscellaneous.go b/modules/auth/apiv1/miscellaneous.go index 4d0d25659d..726a080147 100644 --- a/modules/auth/apiv1/miscellaneous.go +++ b/modules/auth/apiv1/miscellaneous.go @@ -22,12 +22,12 @@ type MarkdownForm struct { Context string `form:"context"` } -func (f *MarkdownForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) { +func (f *MarkdownForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) { data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) validateApiReq(errs, data, f) } -func validateApiReq(errs *binding.BindingErrors, data base.TmplData, f interface{}) { +func validateApiReq(errs *binding.Errors, data base.TmplData, f interface{}) { if errs.Count() == 0 { return } else if len(errs.Overall) > 0 { |