1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:14:25 +00:00

add return avter error on right position

This commit is contained in:
6543 2019-10-29 18:35:05 +01:00
parent 5eca929185
commit e8bb5572a0
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271

View File

@ -654,8 +654,9 @@ func AddIssueSubscription(ctx *context.APIContext) {
ctx.NotFound()
} else {
ctx.Error(500, "GetUserByName", err)
return
}
return
}
//only admin and user for itself can change subscription
@ -727,8 +728,9 @@ func DelIssueSubscription(ctx *context.APIContext) {
ctx.NotFound()
} else {
ctx.Error(500, "GetUserByName", err)
return
}
return
}
//only admin and user for itself can change subscription