go vet: t.Errorf -> t.Error

This commit is contained in:
Jakob Borg 2015-04-04 21:58:21 +02:00
parent a598cd2b18
commit 17fd09102e

View File

@ -78,7 +78,7 @@ func TestRelease(t *testing.T) {
for old, target := range upgrades {
upgrade, err := LatestRelease(old, rels)
if err != nil {
t.Errorf("error retrieving latest version", err)
t.Error("Error retrieving latest version", err)
}
if upgrade.Tag != target {
t.Errorf("Invalid upgrade release: %v -> %v, but got %v", old, target, upgrade.Tag)