helpers: fix some go vet errors

This commit is contained in:
bep committed 2015-04-03 21:20:25 +02:00
1 parent bea5feb34d
commit bea42218b6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ func TestSeq(t *testing.T) {
if b, ok := this.expect.(bool); ok && !b { if b, ok := this.expect.(bool); ok && !b {
if err == nil { if err == nil {
t.Errorf("[%d] TestSeq didn't return an expected error %s", i) t.Errorf("[%d] TestSeq didn't return an expected error", i)
} }
} else { } else {
if err != nil { if err != nil {
+1 -1
View File
@@ -550,7 +550,7 @@ func TestRemoveSubpaths(t *testing.T) {
got := RemoveSubpaths([]string{"hello", "hello/world", "foo/bar", ""}) got := RemoveSubpaths([]string{"hello", "hello/world", "foo/bar", ""})
expect := []string{"hello", "foo/bar"} expect := []string{"hello", "foo/bar"}
if !reflect.DeepEqual(got, expect) { if !reflect.DeepEqual(got, expect) {
t.Errorf("Test %d failed. Expected %q but got %q", expect, got) t.Errorf("Expected %q but got %q", expect, got)
} }
} }