await async calls, resolve warnings

This commit is contained in:
Jesse MacFadyen 2014-04-14 17:01:35 -07:00
parent aa6c1519d2
commit 34c29dc2ec

View File

@ -218,14 +218,14 @@ namespace WPCordovaClassLib.Cordova.Commands
var pathUri = new Uri(url, UriKind.Absolute); var pathUri = new Uri(url, UriKind.Absolute);
if (pathUri.Scheme == Uri.UriSchemeHttp || pathUri.Scheme == Uri.UriSchemeHttps) if (pathUri.Scheme == Uri.UriSchemeHttp || pathUri.Scheme == Uri.UriSchemeHttps)
{ {
Launcher.LaunchUriAsync(pathUri); await Launcher.LaunchUriAsync(pathUri);
return; return;
} }
var file = await GetFile(pathUri.AbsolutePath.Replace('/', Path.DirectorySeparatorChar)); var file = await GetFile(pathUri.AbsolutePath.Replace('/', Path.DirectorySeparatorChar));
if (file != null) if (file != null)
{ {
Launcher.LaunchFileAsync(file); await Launcher.LaunchFileAsync(file);
} }
else else
{ {