mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Clean names
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user