diff options
author | silverwind <me@silverwind.io> | 2023-10-24 04:54:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 04:54:59 +0200 |
commit | ce83609ff636f4c09d91ac53bee75a350bb571d6 (patch) | |
tree | 3ddbab3c0de4fe4249352eb52dbe35dc966e3f9e /models/activities | |
parent | Fix incorrect "tab" parameter for repo search sub-template (#27755) (diff) | |
download | forgejo-ce83609ff636f4c09d91ac53bee75a350bb571d6.tar.xz forgejo-ce83609ff636f4c09d91ac53bee75a350bb571d6.zip |
Upgrade to golangci-lint@v1.55.0 (#27756)
https://github.com/golangci/golangci-lint/releases/tag/v1.55.0
Diffstat (limited to 'models/activities')
-rw-r--r-- | models/activities/action.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/activities/action.go b/models/activities/action.go index 1bfd62438b..15bd9a52ac 100644 --- a/models/activities/action.go +++ b/models/activities/action.go @@ -713,9 +713,8 @@ func DeleteIssueActions(ctx context.Context, repoID, issueID, issueIndex int64) break } else if _, err = db.GetEngine(ctx).In("comment_id", commentIDs).Delete(&Action{}); err != nil { return err - } else { - lastCommentID = commentIDs[len(commentIDs)-1] } + lastCommentID = commentIDs[len(commentIDs)-1] } _, err := e.Where("repo_id = ?", repoID). |