Skip to content

Commit

Permalink
Use correct delegate for GitHub email (#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherias authored Mar 19, 2024
1 parent 7b9a05a commit 996a1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/github/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ func (c *GitHub) GetLogin(ctx context.Context) (string, error) {

// GetPrimaryEmail returns the primary email for the acting user
func (c *GitHub) GetPrimaryEmail(ctx context.Context) (string, error) {
return c.delegate.GetName(ctx)
return c.delegate.GetPrimaryEmail(ctx)
}

// setAsRateLimited adds the GitHub to the cache as rate limited.
Expand Down

0 comments on commit 996a1c4

Please sign in to comment.