summaryrefslogtreecommitdiff
path: root/object_test.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2017-07-06 22:20:00 +0200
committerGitHub <[email protected]>2017-07-06 22:20:00 +0200
commit7929e498810c4edb7d888caea9827d4f24f1914e (patch)
treeacad42ff0f29ac98d56599f8ebdde769bf3fc44d /object_test.go
parentc71c935ad1f00e4bdfb4f3968813281f20f07bab (diff)
parentb09f1ab73936c8ce50b00c50ed4884b748e94b66 (diff)
Merge pull request #390 from libgit2/cmn/go-vet
Fix a couple of issues reported by go-vet
Diffstat (limited to 'object_test.go')
-rw-r--r--object_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object_test.go b/object_test.go
index 1b188a8..cc08210 100644
--- a/object_test.go
+++ b/object_test.go
@@ -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) {