mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 20:25:26 +00:00
More linting again
This commit is contained in:
@ -49,7 +49,7 @@ class InvenTreeModel {
|
||||
|
||||
// Override the web URL for each subclass
|
||||
// Note: If the WEB_URL is the same (except for /api/) as URL then just leave blank
|
||||
String WEB_URL = "";
|
||||
String get WEB_URL => "";
|
||||
|
||||
String get webUrl {
|
||||
|
||||
@ -118,7 +118,7 @@ class InvenTreeModel {
|
||||
Map<String, dynamic> jsondata = {};
|
||||
|
||||
// Accessor for the API
|
||||
var api = InvenTreeAPI();
|
||||
InvenTreeAPI api = InvenTreeAPI();
|
||||
|
||||
int get pk => (jsondata["pk"] ?? -1) as int;
|
||||
|
||||
|
@ -42,7 +42,7 @@ class InvenTreePartCategory extends InvenTreeModel {
|
||||
// TODO - Drive the refactor tractor through this
|
||||
List<String> psplit = pathstring.split("/");
|
||||
|
||||
if (psplit.length > 0) {
|
||||
if (psplit.isNotEmpty) {
|
||||
psplit.removeLast();
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
String get URL => "stock/";
|
||||
|
||||
@override
|
||||
String WEB_URL = "stock/item/";
|
||||
String get WEB_URL => "stock/item/";
|
||||
|
||||
@override
|
||||
Map<String, dynamic> formFields() {
|
||||
@ -549,7 +549,7 @@ class InvenTreeStockLocation extends InvenTreeModel {
|
||||
// TODO - Drive the refactor tractor through this
|
||||
List<String> psplit = pathstring.split("/");
|
||||
|
||||
if (psplit.length > 0) {
|
||||
if (psplit.isNotEmpty) {
|
||||
psplit.removeLast();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user