1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-23 00:07:40 +02:00

Updated test to use already built testClient. Fixed jira error functions to receive jira.Response instead of http.Response

This commit is contained in:
Bob Briski
2017-11-02 16:53:36 -07:00
parent 36974f8b7b
commit 5655cb856a
3 changed files with 15 additions and 12 deletions

View File

@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"github.com/pkg/errors"
)
@ -19,7 +18,7 @@ type Error struct {
}
// NewJiraError creates a new jira Error
func NewJiraError(resp *http.Response, httpError error) error {
func NewJiraError(resp *Response, httpError error) error {
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {