Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Microsoft.Toolkit.Uwp.UI/Cache/FileCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class FileCache : CacheBase<StorageFile>
protected override Task<StorageFile> InitializeTypeAsync(Stream stream, List<KeyValuePair<string, object>> initializerKeyValues = null)
{
// nothing to do in this instance;
return null;
return Task.FromResult<StorageFile>(null);
}

/// <summary>
Expand All @@ -45,7 +45,7 @@ protected override Task<StorageFile> InitializeTypeAsync(Stream stream, List<Key
/// <returns>awaitable task</returns>
protected override Task<StorageFile> InitializeTypeAsync(StorageFile baseFile, List<KeyValuePair<string, object>> initializerKeyValues = null)
{
return Task.Run(() => baseFile);
return Task.FromResult(baseFile);
}
}
}