Skip to content

Commit

Permalink
Refactor: Top langs card: Fix returns tag in docstrings (anuraghazra#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 3, 2023
1 parent e3e1495 commit 8e15656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
* @param {string} props.color No languages data text color.
* @param {string} props.text No languages data translated text.
* @param {import("./types").TopLangOptions["layout"] | undefined} props.layout Card layout.
* @return {string} No languages data SVG node string.
* @returns {string} No languages data SVG node string.
*/
const noLanguagesDataNode = ({ color, text, layout }) => {
return `
Expand All @@ -684,7 +684,7 @@ const noLanguagesDataNode = ({ color, text, layout }) => {
* @param {object} props Function properties.
* @param {import("./types").TopLangOptions["layout"]=} props.layout Input layout string.
* @param {boolean=} props.hide_progress Input hide_progress parameter value.
* @return {number} Default languages count for input layout.
* @returns {number} Default languages count for input layout.
*/
const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
if (layout === "compact" || hide_progress === true) {
Expand Down

0 comments on commit 8e15656

Please sign in to comment.