File tree Expand file tree Collapse file tree
src/Core/SecureFolderFS.Core/VaultAccess Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,15 +55,10 @@ public async Task<V4VaultConfigurationDataModel> ReadV4ConfigurationAsync(Cancel
5555
5656 public async Task < VaultSharesDataModel ? > ReadComplementationAsync ( CancellationToken cancellationToken )
5757 {
58- try
59- {
60- var complementFile = await _vaultFolder . GetFileByNameAsync ( Constants . Vault . Names . VAULT_COMPLEMENTATION_FILENAME , cancellationToken ) ;
61- return await ReadDataAsync < VaultSharesDataModel ? > ( complementFile , _serializer , cancellationToken ) ;
62- }
63- catch ( Exception )
64- {
58+ if ( await _vaultFolder . GetFirstByNameAsync ( Constants . Vault . Names . VAULT_COMPLEMENTATION_FILENAME , cancellationToken ) is not IFile complementFile )
6559 return null ;
66- }
60+
61+ return await ReadDataAsync < VaultSharesDataModel ? > ( complementFile , _serializer , cancellationToken ) ;
6762 }
6863
6964 public async Task < VersionDataModel > ReadVersionAsync ( CancellationToken cancellationToken )
You can’t perform that action at this time.
0 commit comments