From b26bc05bb0c392e52e964061ec598f4487e14f08 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 29 Jan 2026 17:52:50 +0900 Subject: [PATCH] internal/rosa: remove unused receiver This returns the preset itself, it is up to the caller to load the underlying artifact. Signed-off-by: Ophestra --- cmd/mbf/main.go | 2 +- internal/rosa/all.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index d6980e5..db1c2c5 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -146,7 +146,7 @@ func main() { if len(args) != 1 { return errors.New("cure requires 1 argument") } - if p, ok := rosa.Std.ResolveName(args[0]); !ok { + if p, ok := rosa.ResolveName(args[0]); !ok { return fmt.Errorf("unsupported artifact %q", args[0]) } else { pathname, _, err := cache.Cure(rosa.Std.Load(p)) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 8bab65a..72c7e17 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -85,7 +85,7 @@ func (t Toolchain) Load(p PArtifact) pkg.Artifact { } // ResolveName returns a [PArtifact] by name. -func (t Toolchain) ResolveName(name string) (p PArtifact, ok bool) { +func ResolveName(name string) (p PArtifact, ok bool) { p, ok = map[string]PArtifact{ "acl": ACL, "attr": Attr,