diff options
author | 6543 <6543@obermui.de> | 2023-07-04 17:52:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 15:52:33 +0000 |
commit | 934124c641438667d0bbe4c2272b27b424097d82 (patch) | |
tree | d1a001bdd119eaf8d2b5ff1d37ee98f3446bdcb9 /models/repo | |
parent | f4c1f43644eb4a30d185518c1732b24aa821e39d (diff) | |
download | gitea-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.go | 2 |
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, |