Skip to content

Commit 6082eee

Browse files
committed
Move print call so it doesn't get spammed in tests
1 parent f140122 commit 6082eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/PoEAPI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ end)
2525

2626
--- @param callback fun(valid: bool, updateSettings: bool)
2727
function PoEAPIClass:ValidateAuth(callback)
28-
ConPrintf("Validating auth token")
2928
-- make a call for profile if not error we are good
3029
-- if error 401 then try to recreate the token with
3130
if self.authToken and self.refreshToken and self.tokenExpiry then
31+
ConPrintf("Validating auth token")
3232
if self.tokenExpiry < os.time() then
3333
ConPrintf("Auth token expired")
3434
-- here recreate the token with the refresh_token

0 commit comments

Comments
 (0)