1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Formatting fixes

This commit is contained in:
Chris Cummer
2018-06-28 17:40:36 -07:00
parent c4210f7551
commit 0b1ec96545
4 changed files with 10 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ func Create(jenkinsURL string, username string, apiKey string) (*View, error) {
}
jenkinsAPIURL := parsedJenkinsURL.ResolveReference(parsedSuffix)
req, err := http.NewRequest("GET", jenkinsAPIURL.String(), nil)
req, _ := http.NewRequest("GET", jenkinsAPIURL.String(), nil)
req.SetBasicAuth(username, apiKey)
httpClient := &http.Client{}
@@ -45,7 +45,6 @@ func ensureLastSlash(URL string) string {
/* -------------------- Unexported Functions -------------------- */
func parseJson(obj interface{}, text io.Reader) {
jsonStream, err := ioutil.ReadAll(text)
if err != nil {

View File

@@ -6,5 +6,5 @@ type View struct {
Jobs []Job `json:"jobs"`
Name string `json:"name"`
Property []string `json:"property"`
url string `json:"url"`
Url string `json:"url"`
}