mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/promscrape/discovery/azure: remove unneeded conversion to string
This commit is contained in:
parent
973ce4b561
commit
f86070169d
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ func getRefreshTokenFunc(sdc *SDConfig, ac, proxyAC *promauth.Config, env *cloud
|
||||||
}
|
}
|
||||||
var tr tokenResponse
|
var tr tokenResponse
|
||||||
if err := json.Unmarshal(data, &tr); err != nil {
|
if err := json.Unmarshal(data, &tr); err != nil {
|
||||||
return "", 0, fmt.Errorf("cannot parse token auth response %q: %w", string(data), err)
|
return "", 0, fmt.Errorf("cannot parse token auth response %q: %w", data, err)
|
||||||
}
|
}
|
||||||
expiresInSeconds, err := strconv.ParseInt(tr.ExpiresIn, 10, 64)
|
expiresInSeconds, err := strconv.ParseInt(tr.ExpiresIn, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue