Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall committed Mar 19, 2019
1 parent ef3a79e commit 579648f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/color/hex_to_rgb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export function hexToRgb(hex: string): rgbDef {
if (result) {
const [, r, g, b] = result;
return [parseInt(r, 16), parseInt(g, 16), parseInt(b, 16)];
} else {
// fallback to prevent errors
return [0, 0, 0];
}

// fallback to prevent errors
return [0, 0, 0];
}

0 comments on commit 579648f

Please sign in to comment.