Remove redundant declarations.

This commit is contained in:
Michael Bucari-Tovo 2022-06-10 19:37:50 -06:00
parent 2eca9056b9
commit 4111d5fa48

View File

@ -129,11 +129,6 @@ namespace AudibleUtilities
AccessToken = newToken.TokenValue; AccessToken = newToken.TokenValue;
AccessTokenExpires = newToken.Expires; AccessTokenExpires = newToken.Expires;
var privateKey = await GetPrivateKeyAsync();
var adpToken = await GetAdpTokenAsync();
var accessToken = await GetAccessTokenAsync();
var cookies = WebsiteCookies.Select(c => new KeyValuePair<string, string>(c.Key, c.Value));
var api = new Api(this); var api = new Api(this);
var email = await api.GetEmailAsync(); var email = await api.GetEmailAsync();
var account = new Account(email) var account = new Account(email)
@ -144,11 +139,11 @@ namespace AudibleUtilities
}; };
account.IdentityTokens.Update( account.IdentityTokens.Update(
privateKey, await GetPrivateKeyAsync(),
adpToken, await GetAdpTokenAsync(),
accessToken, await GetAccessTokenAsync(),
refreshToken, refreshToken,
cookies, WebsiteCookies.Select(c => new KeyValuePair<string, string>(c.Key, c.Value)),
DeviceSerialNumber, DeviceSerialNumber,
DeviceType, DeviceType,
AmazonAccountId, AmazonAccountId,