mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
		| @@ -35,7 +35,7 @@ func (err ErrFileTypeForbidden) Error() string { | ||||
| var wildcardTypeRe = regexp.MustCompile(`^[a-z]+/\*$`) | ||||
|  | ||||
| // Verify validates whether a file is allowed to be uploaded. | ||||
| func Verify(buf []byte, fileName string, allowedTypesStr string) error { | ||||
| func Verify(buf []byte, fileName, allowedTypesStr string) error { | ||||
| 	allowedTypesStr = strings.ReplaceAll(allowedTypesStr, "|", ",") // compat for old config format | ||||
|  | ||||
| 	allowedTypes := []string{} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user