Skip to content

Commit

Permalink
chore: Fix linter warning πŸ› πŸ’š
Browse files Browse the repository at this point in the history
  • Loading branch information
guisea committed Oct 1, 2024
1 parent fb7a9b7 commit e572966
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/provider/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ func (repo *GiteaRepository) CreateRelease(release *provider.CreateReleaseConfig
}

_, _, err := repo.client.CreateRelease(repo.owner, repo.repo, opt)
return fmt.Errorf("error returned %w, tag value [%s]", err, tag)
if err != nil {
return fmt.Errorf("error returned %w, tag value [%s]", err, tag)
}
return nil
}

func (repo *GiteaRepository) Name() string {
Expand Down

0 comments on commit e572966

Please sign in to comment.