chore: fmt.Errorf(static) → errors.New
All checks were successful
Security Scan / security (pull_request) Successful in 10s
Test / test (pull_request) Successful in 1m10s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-24 16:28:47 +00:00
parent e75ceb2e00
commit 56dc67a8df
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -1,7 +1,7 @@
package forge
import (
"fmt"
"errors"
"os"
)
@ -41,7 +41,7 @@ func NewForgeFromConfig(flagURL, flagToken string, opts ...Option) (*Forge, erro
return nil, err
}
if token == "" {
return nil, fmt.Errorf("forge: no API token configured (set FORGE_TOKEN or pass --token)")
return nil, errors.New("forge: no API token configured (set FORGE_TOKEN or pass --token)")
}
return NewForge(url, token, opts...), nil
}