add return

This commit is contained in:
krawieck 2020-09-12 17:14:08 +02:00
parent f02a54a2f8
commit 49b23265c6
1 changed files with 3 additions and 3 deletions

View File

@ -102,12 +102,12 @@ Future<void> linkLauncher({
// FALLBACK TO REGULAR LINK STUFF
openInBrowser(url);
return openInBrowser(url);
}
void openInBrowser(String url) async {
Future<void> openInBrowser(String url) async {
if (await ul.canLaunch(url)) {
await ul.launch(url);
return await ul.launch(url);
} else {
throw Exception();
// TODO: handle opening links to stuff in app