Remove async modifiers from non-async methods
- Use Task.FromResult where needed
This commit is contained in:
parent
623f009182
commit
b110118e41
7 changed files with 11 additions and 11 deletions
|
|
@ -208,11 +208,11 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
|
|||
return Path.GetFileNameWithoutExtension(currentDirectoryFiles[itemIndex]);
|
||||
}
|
||||
|
||||
public async override Task<PrintItemWrapper> GetPrintItemWrapperAsync(int itemIndex)
|
||||
public override Task<PrintItemWrapper> GetPrintItemWrapperAsync(int itemIndex)
|
||||
{
|
||||
string fileName = currentDirectoryFiles[itemIndex];
|
||||
|
||||
return new PrintItemWrapper(new DataStorage.PrintItem(GetPrintItemName(itemIndex), fileName), this.GetProviderLocator());
|
||||
return Task.FromResult(new PrintItemWrapper(new DataStorage.PrintItem(GetPrintItemName(itemIndex), fileName), this.GetProviderLocator()));
|
||||
}
|
||||
|
||||
public override LibraryProvider GetProviderForCollection(PrintItemCollection collection)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue