diff options
| author | 2026-06-07 08:56:23 +0000 | |
|---|---|---|
| committer | 2026-06-07 08:56:23 +0000 | |
| commit | db39e3647f08bbd544a08552fcb2b3a08c33db33 (patch) | |
| tree | f6138419c408699df787cf20239e22e50cd3b5ad | |
| parent | object/commit: Lint (diff) | |
| signature | No signature | |
object/commit: noinlineerr
| -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) } |
