Skip to content

Commit

Permalink
chore: typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 21, 2022
1 parent abe63e3 commit f81e32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/github.go
Expand Up @@ -208,7 +208,7 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (string,
}

if ctx.Config.Release.Draft && ctx.Config.Release.ReplaceExistingDraft {
if err := c.deleteExistedDraftRelease(ctx, title); err != nil {
if err := c.deleteExistingDraftRelease(ctx, title); err != nil {
return "", err
}
}
Expand Down Expand Up @@ -365,7 +365,7 @@ func overrideGitHubClientAPI(ctx *context.Context, client *github.Client) error
return nil
}

func (c *githubClient) deleteExistedDraftRelease(ctx *context.Context, name string) error {
func (c *githubClient) deleteExistingDraftRelease(ctx *context.Context, name string) error {
opt := github.ListOptions{PerPage: 50}
for {
releases, resp, err := c.client.Repositories.ListReleases(
Expand Down

0 comments on commit f81e32b

Please sign in to comment.