More code cleanup

This commit is contained in:
Oliver 2021-08-02 21:53:57 +10:00
parent 68859b3d2e
commit d47a8db289
7 changed files with 15 additions and 50 deletions

View file

@ -26,7 +26,7 @@ class InvenTreePageResponse {
List<InvenTreeModel> results = [];
}
/**
/*
* The InvenTreeModel class provides a base-level object
* for interacting with InvenTree data.
*/
@ -105,12 +105,9 @@ class InvenTreeModel {
void openLink() async {
if (link.isNotEmpty) {
print("Opening link: ${link}");
if (await canLaunch(link)) {
await launch(link);
} else {
// TODO
}
}
}