Committed by
GitHub
fix: return type 'int' doesn't allow null for zxingBarcodeFormat method
Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -133,6 +133,7 @@ extension ZXingBarcodeFormat on BarcodeFormat { | @@ -133,6 +133,7 @@ extension ZXingBarcodeFormat on BarcodeFormat { | ||
| 133 | return 15; | 133 | return 15; |
| 134 | case BarcodeFormat.unknown: | 134 | case BarcodeFormat.unknown: |
| 135 | case BarcodeFormat.all: | 135 | case BarcodeFormat.all: |
| 136 | + case default: | ||
| 136 | return -1; | 137 | return -1; |
| 137 | } | 138 | } |
| 138 | } | 139 | } |
-
Please register or login to post a comment