Fix errors reported by Go Vet

This commit is contained in:
bep
2015-03-06 14:56:44 +01:00
parent c4c19ad303
commit 103ea842f8
9 changed files with 21 additions and 21 deletions

View File

@@ -941,7 +941,7 @@ func TestSafeHtml(t *testing.T) {
} {
tmpl, err := template.New("test").Parse(this.tmplStr)
if err != nil {
t.Errorf("[%d] unable to create new html template %q: %s", this.tmplStr, err)
t.Errorf("[%d] unable to create new html template %q: %s", i, this.tmplStr, err)
continue
}
@@ -976,7 +976,7 @@ func TestSafeHtmlAttr(t *testing.T) {
} {
tmpl, err := template.New("test").Parse(this.tmplStr)
if err != nil {
t.Errorf("[%d] unable to create new html template %q: %s", this.tmplStr, err)
t.Errorf("[%d] unable to create new html template %q: %s", i, this.tmplStr, err)
continue
}
@@ -1011,7 +1011,7 @@ func TestSafeCss(t *testing.T) {
} {
tmpl, err := template.New("test").Parse(this.tmplStr)
if err != nil {
t.Errorf("[%d] unable to create new html template %q: %s", this.tmplStr, err)
t.Errorf("[%d] unable to create new html template %q: %s", i, this.tmplStr, err)
continue
}
@@ -1046,7 +1046,7 @@ func TestSafeUrl(t *testing.T) {
} {
tmpl, err := template.New("test").Parse(this.tmplStr)
if err != nil {
t.Errorf("[%d] unable to create new html template %q: %s", this.tmplStr, err)
t.Errorf("[%d] unable to create new html template %q: %s", i, this.tmplStr, err)
continue
}