mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Update GitLab errors
The compiler is happy now.... Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -11,14 +11,7 @@ type context struct {
|
||||
|
||||
func newContext(settings *Settings) (*context, error) {
|
||||
baseURL := settings.domain
|
||||
gitlabClient := glb.NewClient(nil, settings.apiKey)
|
||||
|
||||
if baseURL != "" {
|
||||
err := gitlabClient.SetBaseURL(baseURL)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
gitlabClient, _ := glb.NewClient(settings.apiKey, glb.WithBaseURL(baseURL))
|
||||
|
||||
user, _, err := gitlabClient.Users.CurrentUser()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user