Skip to content

Commit 707c69f

Browse files
authored
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…
1 parent 9336286 commit 707c69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/gitdiff/gitdiff.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ outer:
13431343
}
13441344
}
13451345

1346-
return diff, err
1346+
return diff, nil
13471347
}
13481348

13491349
// CommentAsDiff returns c.Patch as *Diff

0 commit comments

Comments
 (0)