From 09bab18b4829d250147595ee2aa94b1a48becb8e Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Tue, 12 Dec 2017 22:32:12 +0800 Subject: [PATCH] Fix flow error --- src/Gradient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gradient.js b/src/Gradient.js index 5dd89b1..f02fb46 100644 --- a/src/Gradient.js +++ b/src/Gradient.js @@ -140,8 +140,8 @@ const parseColorStops = (args: Array, firstColorStopIndex: number, lineL const absoluteValuedColorStops = colorStops.map(({color, stop}) => { return { color, - // $FlowFixMe stop: + // $FlowFixMe lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null }; });