Project isn't required, so don't require it in the client
This commit is contained in:
1 parent
27b4d7a034
commit
416688448c
1 file changed
+1
-4
+1
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user