Merge pull request 'chore: Go 1.26 modernization' (#1) from chore/go-1.26-modernization into main
This commit is contained in:
commit
12c2ad8c61
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