summaryrefslogtreecommitdiffstats
path: root/models/repo
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2023-07-04 17:52:33 +0200
committerGitHub <noreply@github.com>2023-07-04 15:52:33 +0000
commit934124c641438667d0bbe4c2272b27b424097d82 (patch)
treed1a001bdd119eaf8d2b5ff1d37ee98f3446bdcb9 /models/repo
parentf4c1f43644eb4a30d185518c1732b24aa821e39d (diff)
downloadgitea-934124c641438667d0bbe4c2272b27b424097d82.tar.gz
gitea-934124c641438667d0bbe4c2272b27b424097d82.zip
some less naked returns (#25682)
fix upcoming lint issues
Diffstat (limited to 'models/repo')
-rw-r--r--models/repo/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo/release.go b/models/repo/release.go
index b77490584f..246642205a 100644
--- a/models/repo/release.go
+++ b/models/repo/release.go
@@ -339,7 +339,7 @@ func (s releaseMetaSearch) Less(i, j int) bool {
// GetReleaseAttachments retrieves the attachments for releases
func GetReleaseAttachments(ctx context.Context, rels ...*Release) (err error) {
if len(rels) == 0 {
- return
+ return nil
}
// To keep this efficient as possible sort all releases by id,