summaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-25 14:23:48 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-25 14:23:48 +0800
commit229ec927b953cf80b5eecb03d412a9634b83a25a (patch)
treecddd09bed1ba2d98a010173d102dde56e94d0801 /routers/repo/editor.go
parent6a28909f40ad1ff20d325d9be4ada87e5b75ce53 (diff)
downloadgitea-229ec927b953cf80b5eecb03d412a9634b83a25a.tar.gz
gitea-229ec927b953cf80b5eecb03d412a9634b83a25a.zip
Golint fixed for modules/template
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r--routers/repo/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index d0d528e250..92a41f0147 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -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)
}