mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-16 23:47:50 +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:
@ -42,10 +42,7 @@ func main() {
|
||||
tp = ba.Client()
|
||||
}
|
||||
|
||||
config = jira.ServiceConfig{
|
||||
Notify: true,
|
||||
}
|
||||
client, err := jira.NewClient(tp, strings.TrimSpace(jiraURL), config)
|
||||
client, err := jira.NewClient(tp, strings.TrimSpace(jiraURL))
|
||||
if err != nil {
|
||||
fmt.Printf("\nerror: %v\n", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user