1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

chore: typo in method name

This commit is contained in:
Carlos A Becker 2022-08-21 16:05:00 -03:00
parent abe63e37b7
commit f81e32b489
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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
}
}
@ -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(