From 757c0c8d2652ae37881bbd92fb8e32d793e00691 Mon Sep 17 00:00:00 2001
From: Tom Robinson <tlrobinson@gmail.com>
Date: Mon, 8 Oct 2018 12:19:40 -0700
Subject: [PATCH] Fix flow

---
 frontend/src/metabase/lib/colors.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/metabase/lib/colors.js b/frontend/src/metabase/lib/colors.js
index 0cec3e6fe12..4640d867fb6 100644
--- a/frontend/src/metabase/lib/colors.js
+++ b/frontend/src/metabase/lib/colors.js
@@ -134,7 +134,7 @@ export const getColorScale = (
 
 // HACK: d3 may return rgb values with decimals but certain rendering engines
 // don't support that (e.x. Safari and CSSBox)
-export function roundColor(color) {
+export function roundColor(color: ColorString): ColorString {
   return color.replace(
     /rgba\((\d+(?:\.\d+)),\s*(\d+(?:\.\d+)),\s*(\d+(?:\.\d+)),\s*(\d+\.\d+)\)/,
     (_, r, g, b, a) =>
-- 
GitLab