Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Jan 21, 2016
1 parent 3f20139 commit c5fe9f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package jira

import (
"bytes"
"crypto/tls"
"encoding/json"
"fmt"
"github.com/kballard/go-shellquote"
Expand All @@ -11,7 +12,6 @@ import (
"net/http"
"net/http/cookiejar"
"net/url"
"crypto/tls"
"os"
"os/exec"
"runtime"
Expand Down Expand Up @@ -40,11 +40,11 @@ func New(opts map[string]interface{}) *Cli {
transport := &http.Transport{
TLSClientConfig: &tls.Config{},
}

if project, ok := opts["project"].(string); ok {
opts["project"] = strings.ToUpper(project)
}

if insecureSkipVerify, ok := opts["insecure"].(bool); ok {
transport.TLSClientConfig.InsecureSkipVerify = insecureSkipVerify
}
Expand All @@ -53,8 +53,8 @@ func New(opts map[string]interface{}) *Cli {
endpoint: url,
opts: opts,
cookieFile: fmt.Sprintf("%s/.jira.d/cookies.js", homedir),
ua: &http.Client{
Jar: cookieJar,
ua: &http.Client{
Jar: cookieJar,
Transport: transport,
},
}
Expand Down

0 comments on commit c5fe9f5

Please sign in to comment.