mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix: gofmt errors. (#1106)
This commit is contained in:
		@@ -179,7 +179,7 @@ func AssignForm(form interface{}, data map[string]interface{}) {
 | 
			
		||||
func getRuleBody(field reflect.StructField, prefix string) string {
 | 
			
		||||
	for _, rule := range strings.Split(field.Tag.Get("binding"), ";") {
 | 
			
		||||
		if strings.HasPrefix(rule, prefix) {
 | 
			
		||||
			return rule[len(prefix): len(rule) - 1]
 | 
			
		||||
			return rule[len(prefix) : len(rule)-1]
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
@@ -237,7 +237,7 @@ func validate(errs binding.Errors, data map[string]interface{}, f Form, l macaro
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if errs[0].FieldNames[0] == field.Name {
 | 
			
		||||
			data["Err_" + field.Name] = true
 | 
			
		||||
			data["Err_"+field.Name] = true
 | 
			
		||||
 | 
			
		||||
			trName := field.Tag.Get("locale")
 | 
			
		||||
			if len(trName) == 0 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user