aboutsummaryrefslogtreecommitdiff
path: root/internal/db/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/release.go')
-rw-r--r--internal/db/release.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/release.go b/internal/db/release.go
index 43f90d38..26b7595d 100644
--- a/internal/db/release.go
+++ b/internal/db/release.go
@@ -209,7 +209,7 @@ func NewRelease(gitRepo *git.Repository, r *Release, uuids []string) error {
var _ errutil.NotFound = (*ErrReleaseNotExist)(nil)
type ErrReleaseNotExist struct {
- args map[string]interface{}
+ args map[string]any
}
func IsErrReleaseNotExist(err error) bool {
@@ -231,7 +231,7 @@ func GetRelease(repoID int64, tagName string) (*Release, error) {
if err != nil {
return nil, err
} else if !isExist {
- return nil, ErrReleaseNotExist{args: map[string]interface{}{"tag": tagName}}
+ return nil, ErrReleaseNotExist{args: map[string]any{"tag": tagName}}
}
r := &Release{RepoID: repoID, LowerTagName: strings.ToLower(tagName)}
@@ -249,7 +249,7 @@ func GetReleaseByID(id int64) (*Release, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, ErrReleaseNotExist{args: map[string]interface{}{"releaseID": id}}
+ return nil, ErrReleaseNotExist{args: map[string]any{"releaseID": id}}
}
return r, r.LoadAttributes()