Skip to content

Commit

Permalink
Fix a couple of issues reported by go-vet
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmn committed Jul 6, 2017
1 parent daee43b commit b09f1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b09f1ab

Please sign in to comment.