Skip to content

Commit 497fc77

Browse files
Copilotpjbgf
andcommitted
fix: update go-git-fixtures calls to use new signatures with error returns
Co-authored-by: pjbgf <5452977+pjbgf@users.noreply.github.com>
1 parent 623854d commit 497fc77

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

cmd/gogit/verify-pack.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,17 @@ func openPack(path string) (billy.File, billy.File, error) {
165165

166166
fixture := f.One()
167167

168-
return fixture.Idx(), fixture.Packfile(), nil
168+
idxFile, err := fixture.Idx()
169+
if err != nil {
170+
return nil, nil, fmt.Errorf("failed to open fixture idx file: %w", err)
171+
}
172+
173+
packFile, err := fixture.Packfile()
174+
if err != nil {
175+
return nil, nil, fmt.Errorf("failed to open fixture packfile: %w", err)
176+
}
177+
178+
return idxFile, packFile, nil
169179
}
170180

171181
idxPath := path

0 commit comments

Comments
 (0)