Skip to content

Commit

Permalink
enable GetOrganizationByParams error handling
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <[email protected]>
  • Loading branch information
yp05327 and lunny authored Feb 1, 2023
1 parent 75a65ad commit 89324e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/context/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
// if Organization is not defined, get it from params
if ctx.Org.Organization == nil {
GetOrganizationByParams(ctx)
if ctx.Written() {
return
}
}

org := ctx.Org.Organization
Expand Down

0 comments on commit 89324e6

Please sign in to comment.