Skip to content

Commit 50b0f36

Browse files
committed
add missing return
1 parent 3d1c79d commit 50b0f36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/v1/repo/transfer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func Transfer(ctx *context.APIContext) {
7070

7171
if !newOwner.CanCreateRepo() {
7272
ctx.APIError(http.StatusForbidden, "The new owner cannot have more repositories")
73+
return
7374
}
7475

7576
if newOwner.Type == user_model.UserTypeOrganization {

0 commit comments

Comments
 (0)