chore(Col): remove unnecessary ternary operator (#6232)
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ export default createComponent({
|
|||||||
|
|
||||||
group.forEach((item, index) => {
|
group.forEach((item, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
spaces.push({ right: group.length > 1 ? averagePadding : 0 });
|
spaces.push({ right: averagePadding });
|
||||||
} else {
|
} else {
|
||||||
const left = gutter - spaces[item - 1].right;
|
const left = gutter - spaces[item - 1].right;
|
||||||
const right = averagePadding - left;
|
const right = averagePadding - left;
|
||||||
|
|||||||
Reference in New Issue
Block a user