Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonehusin committed Mar 30, 2024
1 parent 286612f commit 8f7b846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions console/spin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
)

func Spin(action func(), title string, args ...any) {
spinner.New().
if err := spinner.New().
Title(fmt.Sprintf(title, args...)).
Action(action).Run()
Action(action).Run(); err != nil {
panic(err)
}
}
2 changes: 1 addition & 1 deletion pager/pagerduty.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (p *PagerDuty) ListUsers(ctx context.Context) ([]*User, error) {
opts := pagerduty.ListUsersOptions{}

for {
resp, err := p.client.ListUsers(opts)
resp, err := p.client.ListUsersWithContext(ctx, opts)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8f7b846

Please sign in to comment.