From db39e3647f08bbd544a08552fcb2b3a08c33db33 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 7 Jun 2026 08:56:23 +0000 Subject: object/commit: noinlineerr --- object/commit/append_test.go | 5 +++-- 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) } -- cgit v1.3.1-10-gc9f91