phase3: precise nullable-condition fixes (if(x)->if(x==true), analyzer-driven). 399->379
This commit is contained in:
@@ -240,10 +240,10 @@ class MobileAttributeSelectionState extends State<MobileAttributeSelection> {
|
||||
Widget optionsView;
|
||||
|
||||
ProductAttribute productAttribute = product.productAttributes![index];
|
||||
if (productAttribute.byQuantity) {
|
||||
if (productAttribute.byQuantity == true) {
|
||||
optionsView = new QtyOptions(product: product, index: index, selections: selections);
|
||||
} else {
|
||||
if (productAttribute.singleSelection) {
|
||||
if (productAttribute.singleSelection == true) {
|
||||
optionsView = new RadioOptions(product: product, index: index, selections: selections);
|
||||
} else {
|
||||
optionsView = new CheckOptions(product: product, index: index, selections: selections);
|
||||
|
||||
Reference in New Issue
Block a user