diff options
Diffstat (limited to 'object')
| -rw-r--r-- | object/commit/append_test.go | 5 | ||||
| -rw-r--r-- | object/commit/roundtrip_test.go | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/object/commit/append_test.go b/object/commit/append_test.go index b5a3ff94..93b5fcd1 100644 --- a/object/commit/append_test.go +++ b/object/commit/append_test.go @@ -63,10 +63,11 @@ func TestAppendGitFsck(t *testing.T) { t.Fatalf("HashObject(commit): %v", err) } - if err := repo.Fsck(t, testgit.FsckOptions{ + err = repo.Fsck(t, testgit.FsckOptions{ Strict: true, NoDangling: true, - }, commitID); err != nil { + }, commitID) + if err != nil { t.Fatalf("Fsck: %v", err) } diff --git a/object/commit/roundtrip_test.go b/object/commit/roundtrip_test.go index 2987f639..9c51027c 100644 --- a/object/commit/roundtrip_test.go +++ b/object/commit/roundtrip_test.go @@ -104,10 +104,11 @@ func TestRoundTrip(t *testing.T) { t.Fatalf("HashObject(commit): %v", err) } - if err := repo.Fsck(t, testgit.FsckOptions{ + err = repo.Fsck(t, testgit.FsckOptions{ Strict: true, NoDangling: true, - }, roundTripID); err != nil { + }, roundTripID) + if err != nil { t.Fatalf("Fsck: %v", err) } |
