redundant async
MODIFY
src/TextCopy/Clipboard_GetUap.cs
src/TextCopy/Clipboard_GetUap.cs
@@ -23,7 +23,6 @@ namespace TextCopy
if (dataPackageView.Contains(StandardDataFormats.Text))
{
value = await dataPackageView.GetTextAsync();
- return;
}
});
return value;

MODIFY
src/TextCopy/Clipboard_SetUap.cs
src/TextCopy/Clipboard_SetUap.cs
@@ -12,12 +12,12 @@ namespace TextCopy
{
static Func<string,Task> CreateSet()
{
- return async s =>
+ return s =>
{
var dataPackage = new DataPackage();
dataPackage.SetText(s);
var dispatcher = CoreApplication.MainView.CoreWindow.Dispatcher;
- await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => UapClipboard.SetContent(dataPackage));
+ return dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => UapClipboard.SetContent(dataPackage)).AsTask();
};
}
}

redundant async