We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86298a6 commit 23b3612Copy full SHA for 23b3612
models/repo/release.go
@@ -335,20 +335,6 @@ func (s releaseMetaSearch) Less(i, j int) bool {
335
return s.ID[i] < s.ID[j]
336
}
337
338
-// InitReleaseRepo makes sure the Repo field of releases is not nil
339
-func InitReleaseRepo(ctx context.Context, rels ...*Release) error {
340
- var err error
341
- for _, release := range rels {
342
- if release.Repo == nil {
343
- release.Repo, err = GetRepositoryByID(ctx, release.RepoID)
344
- if err != nil {
345
- return err
346
- }
347
348
349
350
-}
351
-
352
// GetReleaseAttachments retrieves the attachments for releases
353
func GetReleaseAttachments(ctx context.Context, rels ...*Release) (err error) {
354
if len(rels) == 0 {
0 commit comments