aboutsummaryrefslogtreecommitdiffstats
path: root/services/gitdiff/gitdiff.go
diff options
context:
space:
mode:
authorTheFox0x7 <thefox0x7@gmail.com>2025-06-27 07:59:55 +0200
committerGitHub <noreply@github.com>2025-06-27 07:59:55 +0200
commiteb36a4554ee9a9d15954f08dd37deee54385e29c (patch)
treedf3681b399bc6add525f7ef33359e379c06f73f3 /services/gitdiff/gitdiff.go
parent376bf01769b78b2ddf3562e6b6774e8f19053403 (diff)
downloadgitea-eb36a4554ee9a9d15954f08dd37deee54385e29c.tar.gz
gitea-eb36a4554ee9a9d15954f08dd37deee54385e29c.zip
enforce nolint scope (#34851)
enable nolintlint scope requirement add comments to new directives so it's more obvious why they are in place --- I can also toggle the mandatory comments on if that's something of interest. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'services/gitdiff/gitdiff.go')
-rw-r--r--services/gitdiff/gitdiff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index 010040bc70..f85b13e97f 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -1356,7 +1356,7 @@ func SyncUserSpecificDiff(ctx context.Context, userID int64, pull *issues_model.
// But as that does not work for all potential errors, we simply mark all files as unchanged and drop the error which always works, even if not as good as possible
if err != nil {
log.Error("Could not get changed files between %s and %s for pull request %d in repo with path %s. Assuming no changes. Error: %w", review.CommitSHA, latestCommit, pull.Index, gitRepo.Path, err)
- err = nil //nolint
+ err = nil //nolint:ineffassign,wastedassign
}
filesChangedSinceLastDiff := make(map[string]pull_model.ViewedState)