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:
parent
409cafc402
commit
cb0b2f19cf
@ -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()
|
||||
|
||||
|
@ -27,7 +27,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
|
||||
settings: settings,
|
||||
}
|
||||
|
||||
widget.gitlabClient = gitlab.NewClient(nil, settings.apiKey)
|
||||
widget.gitlabClient, _ = gitlab.NewClient(settings.apiKey)
|
||||
|
||||
widget.SetRenderFunction(widget.Render)
|
||||
widget.initializeKeyboardControls()
|
||||
|
Loading…
x
Reference in New Issue
Block a user