2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

More cleanup

This commit is contained in:
Oliver
2021-07-15 23:28:55 +10:00
parent d2ce3fadf1
commit 83e29777c2
12 changed files with 23 additions and 60 deletions

View File

@ -272,9 +272,6 @@ class StockItemBarcodeAssignmentHandler extends BarcodeHandler {
final InvenTreeStockItem item;
StockItemBarcodeAssignmentHandler(this.item) {
if (item == null) {
throw new AssertionError("null StockItem passed to barcode handler");
}
}
@override
@ -354,11 +351,7 @@ class StockItemScanIntoLocationHandler extends BarcodeHandler {
final InvenTreeStockItem item;
StockItemScanIntoLocationHandler(this.item) {
if (item == null) {
throw new AssertionError("null StockItem passed to StockItemScanIntoLocationHandler");
}
}
StockItemScanIntoLocationHandler(this.item);
@override
String getOverlayText(BuildContext context) => L10().barcodeScanLocation;
@ -419,11 +412,7 @@ class StockLocationScanInItemsHandler extends BarcodeHandler {
final InvenTreeStockLocation location;
StockLocationScanInItemsHandler(this.location) {
if (location == null) {
throw new AssertionError("null StockLocation passed to StockLocationScanInItemsHandler");
}
}
StockLocationScanInItemsHandler(this.location);
@override
String getOverlayText(BuildContext context) => L10().barcodeScanItem;