mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-12-21 23:47:34 +02:00
Instead of baking config into the client, adds a method call that allows options to be passed in
This commit is contained in:
@@ -29,10 +29,7 @@ func main() {
|
||||
Password: strings.TrimSpace(password),
|
||||
}
|
||||
|
||||
config = jira.ServiceConfig{
|
||||
Notify: true,
|
||||
}
|
||||
client, err := jira.NewClient(tp.Client(), strings.TrimSpace(jiraURL), config)
|
||||
client, err := jira.NewClient(tp.Client(), strings.TrimSpace(jiraURL))
|
||||
if err != nil {
|
||||
fmt.Printf("\nerror: %v\n", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user