Fix flow error

This commit is contained in:
Niklas von Hertzen 2017-12-12 22:32:12 +08:00
parent 7e53b195ea
commit 09bab18b48

View File

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