mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-21 12:07:01 +02:00
go lint
This commit is contained in:
parent
6eec2f6048
commit
0d2b98ade7
2
issue.go
2
issue.go
@ -32,7 +32,7 @@ type Issue struct {
|
|||||||
// Attachment represents a JIRA attachment
|
// Attachment represents a JIRA attachment
|
||||||
type Attachment struct {
|
type Attachment struct {
|
||||||
Self string `json:"self,omitempty"`
|
Self string `json:"self,omitempty"`
|
||||||
Id string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Filename string `json:"filename,omitempty"`
|
Filename string `json:"filename,omitempty"`
|
||||||
Author *Assignee `json:"author,omitempty"`
|
Author *Assignee `json:"author,omitempty"`
|
||||||
Created string `json:"created,omitempty"`
|
Created string `json:"created,omitempty"`
|
||||||
|
@ -167,7 +167,7 @@ func TestIssueDownloadAttachment(t *testing.T) {
|
|||||||
t.Error("Expected attachment text", err)
|
t.Error("Expected attachment text", err)
|
||||||
}
|
}
|
||||||
if string(attachment) != testAttachment {
|
if string(attachment) != testAttachment {
|
||||||
t.Errorf("Expecting an attachment", string(attachment))
|
t.Errorf("Expecting an attachment: %s", string(attachment))
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user