History

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…

delvh committed 3 years ago

Commit 707c69f1 parent 93362861 file · +1 −1Browse files

Showing the changes to services/gitdiff/gitdiff.go (1 of 1 file). Show all

Unified · Split

services/gitdiff/gitdiff.go+1−1
@@ -1343,7 +1343,7 @@ outer: · 1342 unmodified lines
1343 }1343 }
1344 }1344 }
1345 1345
1346 return diff, err1346 return diff, nil
1347}1347}
1348 1348
1349// CommentAsDiff returns c.Patch as *Diff1349// CommentAsDiff returns c.Patch as *Diff