Fix formatting

This commit is contained in:
MoyuScript 2017-12-12 22:39:27 +08:00
parent 86ffba6dcb
commit f3715b1f3c

View File

@ -138,11 +138,13 @@ const parseColorStops = (args: Array<string>, firstColorStopIndex: number, lineL
}
const absoluteValuedColorStops = colorStops.map(({color, stop}) => {
const absoluteStop =
lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null;
return {
color,
stop:
// $FlowFixMe
lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null
stop: absoluteStop
};
});