diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-12-02 22:36:15 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-12-02 22:36:15 +0100 |
commit | 779ced6da10e35df9273b95928ed182cddecee27 (patch) | |
tree | 90765a9e7bf6e2255503a0a4e0a4fb5d5c9fdec6 /MatrixRoomUtils.Desktop/MRUStorageWrapper.cs | |
parent | Update upstreams (diff) | |
download | MatrixUtils-779ced6da10e35df9273b95928ed182cddecee27.tar.xz |
Reformat
Diffstat (limited to 'MatrixRoomUtils.Desktop/MRUStorageWrapper.cs')
-rw-r--r-- | MatrixRoomUtils.Desktop/MRUStorageWrapper.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MatrixRoomUtils.Desktop/MRUStorageWrapper.cs b/MatrixRoomUtils.Desktop/MRUStorageWrapper.cs index bc01774..8a44518 100644 --- a/MatrixRoomUtils.Desktop/MRUStorageWrapper.cs +++ b/MatrixRoomUtils.Desktop/MRUStorageWrapper.cs @@ -7,7 +7,7 @@ namespace MatrixRoomUtils.Desktop; public class MRUStorageWrapper(TieredStorageService storageService, HomeserverProviderService homeserverProviderService) { public async Task<List<LoginResponse>?> GetAllTokens() { - if(!await storageService.DataStorageProvider.ObjectExistsAsync("mru.tokens")) { + if (!await storageService.DataStorageProvider.ObjectExistsAsync("mru.tokens")) { return null; } return await storageService.DataStorageProvider.LoadObjectAsync<List<LoginResponse>>("mru.tokens") ?? @@ -15,7 +15,7 @@ public class MRUStorageWrapper(TieredStorageService storageService, HomeserverPr } public async Task<LoginResponse?> GetCurrentToken() { - if(!await storageService.DataStorageProvider.ObjectExistsAsync("token")) { + if (!await storageService.DataStorageProvider.ObjectExistsAsync("token")) { return null; } var currentToken = await storageService.DataStorageProvider.LoadObjectAsync<LoginResponse>("token"); @@ -41,7 +41,7 @@ public class MRUStorageWrapper(TieredStorageService storageService, HomeserverPr tokens.Add(loginResponse); await storageService.DataStorageProvider.SaveObjectAsync("mru.tokens", tokens); - if(await GetCurrentToken() is null) + if (await GetCurrentToken() is null) await SetCurrentToken(loginResponse); } |