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
13431343 }
13441344 }
13451345
1346− return diff, err
1346+ return diff, nil
13471347 }
13481348
13491349 // CommentAsDiff returns c.Patch as *Diff