chore: fmt.Errorf(static) → errors.New

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-24 16:27:42 +00:00
parent 3b9e0e7a4c
commit cbd0c5f22b
No known key found for this signature in database
GPG key ID: AF404715446AEB41
2 changed files with 4 additions and 2 deletions

View file

@ -23,6 +23,7 @@ package workspace
import (
"encoding/json"
"errors"
"fmt"
"path/filepath"
"strings"
@ -92,7 +93,7 @@ func agentContextPath(wsPath, provider, name string) string {
func parseAgentID(id string) (provider, name string, err error) {
parts := strings.SplitN(id, "/", 2)
if len(parts) != 2 || parts[0] == "" || parts[1] == "" {
return "", "", fmt.Errorf("agent ID must be provider/agent-name (e.g. claude-opus/qa)")
return "", "", errors.New("agent ID must be provider/agent-name (e.g. claude-opus/qa)")
}
return parts[0], parts[1], nil
}

View file

@ -1,6 +1,7 @@
package workspace
import (
"errors"
"fmt"
"os"
"path/filepath"
@ -99,5 +100,5 @@ func FindWorkspaceRoot() (string, error) {
dir = parent
}
return "", fmt.Errorf("not in a workspace")
return "", errors.New("not in a workspace")
}