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

Clean up the Jenkins module's API credentials loading

This commit is contained in:
Chris Cummer
2018-07-31 15:13:18 -07:00
parent ba38772760
commit 2fe8164e20
4 changed files with 20 additions and 13 deletions

View File

@@ -72,7 +72,10 @@ func travisRequest(path string) (*http.Response, error) {
}
func apiToken() string {
return os.Getenv(APIEnvToken)
return wtf.Config.UString(
"wtf.mods.travisci.apiKey",
os.Getenv(APIEnvToken),
)
}
func parseJson(obj interface{}, text io.Reader) {