Skip to content

Commit d4a7d01

Browse files
committed
with named return parameter
1 parent 7dc22bc commit d4a7d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/review_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func CountReviews(ctx context.Context, opts FindReviewOptions) (int64, error) {
159159
// The first returned parameter is the latest review of each individual reviewer or team
160160
// The second returned parameter is the latest review of each original author which is migrated from other systems
161161
// The reviews are sorted by updated time
162-
func GetReviewsByIssueID(ctx context.Context, issueID int64) (ReviewList, ReviewList, error) {
162+
func GetReviewsByIssueID(ctx context.Context, issueID int64) (latestReviews ReviewList, migratedOriginalReviews ReviewList, err error) { //nolint
163163
reviews := make([]*Review, 0, 10)
164164

165165
// Get all reviews for the issue id

0 commit comments

Comments
 (0)