diff options
author | delvh <dev.lh@web.de> | 2023-09-20 22:28:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 22:28:17 +0200 |
commit | 707c69f399d311aaa11ca62a27293244e85cb043 (patch) | |
tree | 454ff0257db1fbb9c62aa1b716d5158105711c75 /services | |
parent | 9336286e353370d76d9804043ee6af8f2fe35e00 (diff) | |
download | gitea-707c69f399d311aaa11ca62a27293244e85cb043.tar.gz gitea-707c69f399d311aaa11ca62a27293244e85cb043.zip |
Fix successful return value for `SyncAndGetUserSpecificDiff` (#27152)v1.21.0-rc0
A function should not return an error when it is successful.
Otherwise, things like https://discord.com/channels/322538954119184384/322538954119184384/1153705341620600833 happen…
Diffstat (limited to 'services')
-rw-r--r-- | services/gitdiff/gitdiff.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go index 4cc093e65d..fd0f32717c 100644 --- a/services/gitdiff/gitdiff.go +++ b/services/gitdiff/gitdiff.go @@ -1343,7 +1343,7 @@ outer: } } - return diff, err + return diff, nil } // CommentAsDiff returns c.Patch as *Diff |