mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-11-27 05:30:32 +08:00
Refactor: Top langs card: Use default value instead if statement (#3082)
This commit is contained in:
parent
da82999f06
commit
4eefd2497d
@ -719,7 +719,7 @@ const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
|
||||
const renderTopLanguages = (topLangs, options = {}) => {
|
||||
const {
|
||||
hide_title = false,
|
||||
hide_border,
|
||||
hide_border = false,
|
||||
card_width,
|
||||
title_color,
|
||||
text_color,
|
||||
@ -808,9 +808,7 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
|
||||
if (disable_animations) card.disableAnimations();
|
||||
|
||||
if (hide_border) {
|
||||
card.setHideBorder(hide_border);
|
||||
}
|
||||
card.setHideBorder(hide_border);
|
||||
card.setHideTitle(hide_title);
|
||||
card.setCSS(
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user