1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-09-16 09:06:19 +02:00

go fmt and docs

This commit is contained in:
Andy Grunwald
2017-05-01 15:06:18 +02:00
parent 880a13c107
commit 1c3a3519ff
2 changed files with 2 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ func (s *AuthenticationService) AcquireSessionCookie(username, password string)
return true, nil
}
// SetBasicAuth sets username and password for the basic auth against the JIRA instance.
func (s *AuthenticationService) SetBasicAuth(username, password string) {
s.username = username
s.password = password

View File

@@ -755,7 +755,7 @@ func InitIssueWithMetaAndFields(metaProject *MetaProject, metaIssuetype *MetaIss
}
switch elemType {
case "component":
issueFields.Unknowns[jiraKey] = []Component{Component{Name: value}}
issueFields.Unknowns[jiraKey] = []Component{{Name: value}}
default:
issueFields.Unknowns[jiraKey] = []string{value}
}