Skip to content

Commit

Permalink
Code Quality: Add back conditional check for extra safety
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 28, 2025
1 parent 349505d commit 17f9b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2529,7 +2529,7 @@ private async Task AddFileOrFolderAsync(ListedItem? item)
else if (storageItem.IsOfType(StorageItemTypes.Folder))
{
var properties = await storageItem.AsBaseStorageFolder().GetBasicPropertiesAsync();
size = (long)properties.Size;
size = item.IsArchive ? (long)properties.Size : null;
modified = properties.DateModified;
created = properties.DateCreated;
}
Expand Down

0 comments on commit 17f9b27

Please sign in to comment.