Rename admin_* resources to plain names

This commit is contained in:
Gavin Bunney
2019-10-10 11:46:28 -07:00
parent 66696e3785
commit e01c73392b
7 changed files with 49 additions and 49 deletions

View File

@@ -69,7 +69,7 @@ func (c *BitbucketClient) Do(method, endpoint string, payload *bytes.Buffer) (*h
resp, err := c.HTTPClient.Do(req)
log.Printf("[DEBUG] Resp: %v Err: %v", resp, err)
if resp.StatusCode >= 400 || resp.StatusCode < 200 {
if resp != nil && (resp.StatusCode >= 400 || resp.StatusCode < 200) {
apiError := Error{
StatusCode: resp.StatusCode,
Endpoint: endpoint,