Mercurial > minori
changeset 349:7e97c566cce4
services/kitsu: remove unused parameters in functions
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 25 Jun 2024 16:27:38 -0400 |
parents | 6b0768158dcd |
children | a0e96f50bcce |
files | src/services/kitsu.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/services/kitsu.cc Tue Jun 25 11:19:54 2024 -0400 +++ b/src/services/kitsu.cc Tue Jun 25 16:27:38 2024 -0400 @@ -86,10 +86,10 @@ return true; } -static bool RefreshAccessToken(std::string& access_token, const std::string& refresh_token) { +static bool RefreshAccessToken(void) { const nlohmann::json request = { {"grant_type", "refresh_token"}, - {"refresh_token", refresh_token} + {"refresh_token", session.config.auth.kitsu.refresh_token}, }; if (!SendAuthRequest(request)) @@ -104,7 +104,7 @@ auto& auth = session.config.auth.kitsu; if (Time::GetSystemTime() >= session.config.auth.kitsu.access_token_expiration) - if (!RefreshAccessToken(auth.access_token, auth.refresh_token)) + if (!RefreshAccessToken()) return std::nullopt; return auth.access_token;