internal/pkg: pass context to file cure

This removes the left over embedded contexts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-09 05:31:38 +09:00
parent f712466714
commit 34cb4ebd3b
7 changed files with 17 additions and 31 deletions

View File

@@ -109,7 +109,7 @@ type stubFile struct {
stubArtifact
}
func (a stubFile) Cure() ([]byte, error) { return a.data, a.err }
func (a stubFile) Cure(context.Context) ([]byte, error) { return a.data, a.err }
// newStubFile returns an implementation of [pkg.File] with hardcoded behaviour.
func newStubFile(