fix: resolve golangci-lint funlen, nilerr, and empty branch issues

This commit is contained in:
sam committed 2026-09-02 23:10:38 +10:00
1 parent 5dc3c9895c
commit 59638ed35e
6 files changed
+101 -73

No files matched your search

@@ -312,9 +312,7 @@ func TestManifestShape(t *testing.T) {
if len(m.Tools) != 0 {
t.Errorf("Manifest().Tools = %v, want none: extraction is a plain completion, not tool-calling", m.Tools)
}
if !m.Skills {
// deliberately NOT checking true -- documents the negative
}
// deliberately NOT checking true -- documents the negative
if m.Skills {
t.Error("Manifest().Skills = true, want false")
}
@@ -105,12 +105,12 @@ func (c *Curator) reviewOne(ctx context.Context, name string) ([]curator.Action,
return nil, err
}
fm, _, parseErr := skill.Parse([]byte(sk.Content))
if parseErr != nil {
fm, _, fail := skill.Parse([]byte(sk.Content))
if fail != nil {
return []curator.Action{{
Type: ActionInvalid,
Detail: name,
Reason: parseErr.Error(),
Reason: fail.Error(),
}}, nil
}