1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-09 17:56:14 +02:00

Fix successful return value for `SyncAndGetUserSpecificDiff` (#27152)

A function should not return an error when it is successful.
Otherwise, things like https://discord.com/channels/322538954119184384/322538954119184384/1153705341620600833 happen…
This commit is contained in:
delvh 2023-09-20 22:28:17 +02:00 committed by GitHub
parent 9336286e35
commit 707c69f399
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1343,7 +1343,7 @@ outer:
}
}
return diff, err
return diff, nil
}
// CommentAsDiff returns c.Patch as *Diff