mirror of
https://github.com/interviewstreet/go-jira.git
synced 2024-11-24 08:22:42 +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
|
||||
type Attachment struct {
|
||||
Self string `json:"self,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Filename string `json:"filename,omitempty"`
|
||||
Author *Assignee `json:"author,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
|
@ -167,7 +167,7 @@ func TestIssueDownloadAttachment(t *testing.T) {
|
||||
t.Error("Expected attachment text", err)
|
||||
}
|
||||
if string(attachment) != testAttachment {
|
||||
t.Errorf("Expecting an attachment", string(attachment))
|
||||
t.Errorf("Expecting an attachment: %s", string(attachment))
|
||||
}
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
|
Loading…
Reference in New Issue
Block a user