Skip to content

Commit c1699cf

Browse files
committed
add missing return
1 parent d7ce727 commit c1699cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/web/feed/profile.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ func showUserFeed(ctx *context.Context, formatType string) {
3131
includePrivate := ctx.IsSigned && (ctx.Doer.IsAdmin || ctx.Doer.ID == ctx.ContextUser.ID)
3232
isOrganisation := ctx.ContextUser.IsOrganization()
3333
if ctx.IsSigned && isOrganisation && !includePrivate {
34-
// When feed is requested by a member of the
35-
// organization, include the private repo's the member
36-
// has access to.
34+
// When feed is requested by a member of the organization,
35+
// include the private repo's the member has access to.
3736
isOrgMember, err := organization.IsOrganizationMember(ctx, ctx.ContextUser.ID, ctx.Doer.ID)
3837
if err != nil {
3938
ctx.ServerError("IsOrganizationMember", err)
39+
return
4040
}
4141
includePrivate = isOrgMember
4242
}

0 commit comments

Comments
 (0)