chore: Remove the unreachable code block (#7000)

This commit is contained in:
deepsource-autofix[bot] 2021-09-01 08:42:24 +05:30 committed by GitHub
parent 7ba60bdaff
commit ceeb1ad16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -62,14 +62,13 @@ const getCustomHoverColor = (
.lighten(40)
.toString()
: theme.colors.button.primary.outline.hoverColor;
break;
case ButtonVariantTypes.GHOST:
return backgroundColor
? tinycolor(backgroundColor)
.lighten(40)
.toString()
: theme.colors.button.primary.ghost.hoverColor;
break;
default:
return backgroundColor
@ -77,7 +76,6 @@ const getCustomHoverColor = (
.darken(10)
.toString()
: theme.colors.button.primary.solid.hoverColor;
break;
}
};

View File

@ -84,14 +84,13 @@ const getCustomHoverColor = (
.lighten(40)
.toString()
: theme.colors.button.primary.outline.hoverColor;
break;
case ButtonVariantTypes.GHOST:
return backgroundColor
? tinycolor(backgroundColor)
.lighten(40)
.toString()
: theme.colors.button.primary.ghost.hoverColor;
break;
default:
return backgroundColor
@ -99,7 +98,6 @@ const getCustomHoverColor = (
.darken(10)
.toString()
: theme.colors.button.primary.solid.hoverColor;
break;
}
};