Skip to content

Commit 25233a9

Browse files
GiteaBotdelvh
andauthored
Fix successful return value for SyncAndGetUserSpecificDiff (#27152) (#27156)
Backport #27152 by @delvh A function should not return an error when it is successful. Otherwise, things like https://discord.com/channels/322538954119184384/322538954119184384/1153705341620600833 happen… Co-authored-by: delvh <[email protected]>
1 parent 7a99c7b commit 25233a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ outer:
13121312
}
13131313
}
13141314

1315-
return diff, err
1315+
return diff, nil
13161316
}
13171317

13181318
// CommentAsDiff returns c.Patch as *Diff

0 commit comments

Comments
 (0)