Skip to content

Commit

Permalink
Refactor barcode reading logic to use index operator
Browse files Browse the repository at this point in the history
  • Loading branch information
khoren93 committed Apr 1, 2024
1 parent 86bfb57 commit 16dee61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/logic/barcodes_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Codes _readBarcodes(
}

for (int i = 0; i < result.count; i++) {
codes.add(result.results.elementAt(i).ref.toCode());
codes.add(result.results[i].toCode());
}
malloc.free(result.results);
return Codes(codes: codes, duration: result.duration);
Expand Down

0 comments on commit 16dee61

Please sign in to comment.