A function should not return an error when it is successful. Otherwise, things like https://discord.com/channels/322538954119184384/322538954119184384/1153705341620600833 happen…
Showing the changes to services/gitdiff/gitdiff.go (1 of 1 file). Show all
Unified · Split
| @@ -1343,7 +1343,7 @@ outer: · 1342 unmodified lines | ||
| 1343 | 1343 | } |
| 1344 | 1344 | } |
| 1345 | 1345 | |
| 1346 | − return diff, err | |
| 1346 | + return diff, nil | |
| 1347 | 1347 | } |
| 1348 | 1348 | |
| 1349 | 1349 | // CommentAsDiff returns c.Patch as *Diff |