chore(Col): remove unnecessary ternary operator (#6232)

This commit is contained in:
neverland 2020-05-07 16:48:38 +08:00 committed by GitHub
parent 14530f3709
commit 3e231f1ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ export default createComponent({
group.forEach((item, index) => {
if (index === 0) {
spaces.push({ right: group.length > 1 ? averagePadding : 0 });
spaces.push({ right: averagePadding });
} else {
const left = gutter - spaces[item - 1].right;
const right = averagePadding - left;