mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Golint fixed for modules/template
This commit is contained in:
@ -74,7 +74,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
|
||||
|
||||
d, _ := ioutil.ReadAll(dataRc)
|
||||
buf = append(buf, d...)
|
||||
if err, content := template.ToUTF8WithErr(buf); err != nil {
|
||||
if content, err := template.ToUTF8WithErr(buf); err != nil {
|
||||
if err != nil {
|
||||
log.Error(4, "ToUTF8WithErr: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user