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/repo.go | |
parent | 3f4c040f3f7686f2534bf7e6f61877844b431e48 (diff) | |
download | gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.tar.gz gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.zip |
Clean names
Diffstat (limited to 'modules/auth/repo.go')
-rw-r--r-- | modules/auth/repo.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go index 37b9f1d1e6..f880cdf5d5 100644 --- a/modules/auth/repo.go +++ b/modules/auth/repo.go @@ -31,7 +31,7 @@ func (f *CreateRepoForm) Name(field string) string { return names[field] } -func (f *CreateRepoForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { +func (f *CreateRepoForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) { data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) validate(errors, data, f) } @@ -55,7 +55,7 @@ func (f *MigrateRepoForm) Name(field string) string { return names[field] } -func (f *MigrateRepoForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { +func (f *MigrateRepoForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) { data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) validate(errors, data, f) } @@ -79,7 +79,7 @@ func (f *RepoSettingForm) Name(field string) string { return names[field] } -func (f *RepoSettingForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { +func (f *RepoSettingForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) { data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) validate(errors, data, f) } @@ -100,7 +100,7 @@ func (f *NewWebhookForm) Name(field string) string { return names[field] } -func (f *NewWebhookForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { +func (f *NewWebhookForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) { data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) validate(errors, data, f) } |