aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/editor.go2
-rw-r--r--routers/repo/view.go2
2 files changed, 2 insertions, 2 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)
}
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)
}