mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Formatting fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user