chore: fmt.Errorf(static) → errors.New
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e75ceb2e00
commit
56dc67a8df
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue