Commit 7929e498 authored by Carlos Martín Nieto's avatar Carlos Martín Nieto Committed by GitHub

Merge pull request #390 from libgit2/cmn/go-vet

Fix a couple of issues reported by go-vet
parents c71c935a b09f1ab7
......@@ -62,7 +62,7 @@ var tests = []TestRunner{
t.Errorf("Got LookupBool error: '%v', expected none\n", err)
}
if !val {
t.Errorf("Got %b from LookupBool, expected 'false'\n", val)
t.Errorf("Got %t from LookupBool, expected 'false'\n", val)
}
},
// LookupInt32
......
......@@ -108,7 +108,7 @@ func TestObjectOwner(t *testing.T) {
func checkShortId(t *testing.T, Id, shortId string) {
if len(shortId) < 7 || len(shortId) >= len(Id) {
t.Fatal("bad shortId lenght %s", len(shortId))
t.Fatalf("bad shortId lenght %d", len(shortId))
}
if !strings.HasPrefix(Id, shortId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment