summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.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/view.go
parent6a28909f40ad1ff20d325d9be4ada87e5b75ce53 (diff)
downloadgitea-229ec927b953cf80b5eecb03d412a9634b83a25a.tar.gz
gitea-229ec927b953cf80b5eecb03d412a9634b83a25a.zip
Golint fixed for modules/template
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 7303e44126..3ef3716f27 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -164,7 +164,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
} else {
// Building code view blocks with line number on server side.
var fileContent string
- if err, content := template.ToUTF8WithErr(buf); err != nil {
+ if content, err := template.ToUTF8WithErr(buf); err != nil {
if err != nil {
log.Error(4, "ToUTF8WithErr: %s", err)
}