From 0d2b98ade77c5ad3f63e7044360ff0fa3de621d5 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Fri, 27 May 2016 14:19:35 +0200 Subject: [PATCH] go lint --- issue.go | 2 +- issue_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/issue.go b/issue.go index ab3e352..7df52e2 100644 --- a/issue.go +++ b/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"` diff --git a/issue_test.go b/issue_test.go index 382a8f0..4d1f916 100644 --- a/issue_test.go +++ b/issue_test.go @@ -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 {