Skip to content

Commit

Permalink
Update check for empty id string
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellemaxwell committed Nov 14, 2022
1 parent b7163ea commit 2724413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tenant/api/v1/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *APIv1) TenantDetail(ctx context.Context, id string) (out *Tenant, err e
}

func (s *APIv1) TenantUpdate(ctx context.Context, in *Tenant) (out *Tenant, err error) {
if in.ID != "" {
if in.ID == "" {
return nil, errors.New("tenant id is required for update")
}

Expand Down

0 comments on commit 2724413

Please sign in to comment.