Fix formatting

This commit is contained in:
Niklas von Hertzen 2017-12-12 22:39:27 +08:00
parent 757c32f6c4
commit 0b9f34a5bf

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
};
});