Skip to content

Commit b09f1ab

Browse files
committed
Fix a couple of issues reported by go-vet
1 parent daee43b commit b09f1ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var tests = []TestRunner{
6262
t.Errorf("Got LookupBool error: '%v', expected none\n", err)
6363
}
6464
if !val {
65-
t.Errorf("Got %b from LookupBool, expected 'false'\n", val)
65+
t.Errorf("Got %t from LookupBool, expected 'false'\n", val)
6666
}
6767
},
6868
// LookupInt32

object_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestObjectOwner(t *testing.T) {
108108

109109
func checkShortId(t *testing.T, Id, shortId string) {
110110
if len(shortId) < 7 || len(shortId) >= len(Id) {
111-
t.Fatal("bad shortId lenght %s", len(shortId))
111+
t.Fatalf("bad shortId lenght %d", len(shortId))
112112
}
113113

114114
if !strings.HasPrefix(Id, shortId) {

0 commit comments

Comments
 (0)