Skip to content

Commit

Permalink
fix(branch-protection): fix duplicated line on code
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
  • Loading branch information
diogoteles08 committed Dec 8, 2023
1 parent fbe061f commit a6e27c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clients/githubrepo/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ func copyNonAdminSettings(src interface{}, dst *clients.BranchProtectionRule) {
if dst.RequiredPullRequestReviews == nil {
dst.RequiredPullRequestReviews = new(clients.PullRequestReviewRule)
}
dst.RequiredPullRequestReviews = new(clients.PullRequestReviewRule)
copyInt32Ptr(v.RequiredApprovingReviewCount, &dst.RequiredPullRequestReviews.RequiredApprovingReviewCount)
copyBoolPtr(v.RequiresCodeOwnerReviews, &dst.RequiredPullRequestReviews.RequireCodeOwnerReviews)

Check warning on line 369 in clients/githubrepo/branches.go

View check run for this annotation

Codecov / codecov/patch

clients/githubrepo/branches.go#L365-L369

Added lines #L365 - L369 were not covered by tests
}
Expand Down

0 comments on commit a6e27c4

Please sign in to comment.