Removing unnecessary parenthesis (#156928)
This is simply removing unnecessary parenthesis from various places. This change is because of a change to the unnecessary_parentesis lint that will trigger there. Here is the CL https://dart-review.googlesource.com/c/sdk/+/390161. - https://github.com/dart-lang/linter/issues/4996 If anything else is needed please let me know. I'd like to ask for this PR to wait a bit until the bots are run again on that CL so that I can be sure nothing else will trigger, I will come back here and update this whenever everything is complete. Thanks!
This commit is contained in:
@@ -59,13 +59,9 @@ class DesktopProductCardColumn extends StatelessWidget {
|
||||
final int productCardIndex = index ~/ 2;
|
||||
card = DesktopProductCard(
|
||||
product: products[productCardIndex],
|
||||
imageWidth: startLarge
|
||||
? ((productCardIndex.isEven)
|
||||
? largeImageWidth
|
||||
: smallImageWidth)
|
||||
: ((productCardIndex.isEven)
|
||||
? smallImageWidth
|
||||
: largeImageWidth),
|
||||
imageWidth: startLarge == productCardIndex.isEven
|
||||
? largeImageWidth
|
||||
: smallImageWidth,
|
||||
);
|
||||
} else {
|
||||
// This is just a divider.
|
||||
|
||||
Reference in New Issue
Block a user