mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-02 22:57:50 +08:00
Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
@ -14,7 +14,7 @@ import (
|
||||
"code.gitea.io/gitea/modules/json"
|
||||
)
|
||||
|
||||
func wrapNewlines(w io.Writer, prefix []byte, value []byte) (sum int64, err error) {
|
||||
func wrapNewlines(w io.Writer, prefix, value []byte) (sum int64, err error) {
|
||||
if len(value) == 0 {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user