From 416688448c05c7e82267472b3c098566559371ee Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 5 May 2020 13:32:47 -0400 Subject: [PATCH] Project isn't required, so don't require it in the client --- api/client.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/client.go b/api/client.go index 041649f93..5a6c64700 100644 --- a/api/client.go +++ b/api/client.go @@ -647,11 +647,8 @@ func (c *Client) NewRequest(ctx context.Context, method, requestPath string, bod } } - switch { - case org == "": + if org == "" { return nil, fmt.Errorf("could not create request, no organization set") - case project == "": - return nil, fmt.Errorf("could not create request, no project set") } u, err := url.Parse(addr)