Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed Dec 15, 2023
1 parent 0710951 commit 7197206
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions barcode/lib/src/ean2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class BarcodeEan2 extends BarcodeEan {
yield* add(BarcodeMaps.eanCenterEan2, 2);
}

if(index == 0){
if (index == 0) {
yield* add(codes[pattern < 2 ? 0 : 1], 7);
}
else { //index == 1
} else {
//index == 1
yield* add(codes[pattern % 2 == 0 ? 0 : 1], 7);
}
index++;
Expand Down

0 comments on commit 7197206

Please sign in to comment.