Project isn't required, so don't require it in the client

This commit is contained in:
Jeff Mitchell committed 2020-05-05 13:32:54 -04:00
1 parent 27b4d7a034
commit 416688448c
1 file changed
+1 -4
+1 -4
View File
@@ -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)