Refactor: Fixed returns statement for wakatime card functions docstrings (#2934)

This commit is contained in:
Alexandr Garbuzov 2023-07-12 09:40:25 +03:00 committed by GitHub
parent 1bfad4604d
commit 9ca24c67cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ const languageColors = require("../common/languageColors.json"); // now works
* @param {object} props The function properties.
* @param {string} props.color No coding activity text color.
* @param {string} props.text No coding activity translated text.
* @return {string} No coding activity SVG node string.
* @returns {string} No coding activity SVG node string.
*/
const noCodingActivityNode = ({ color, text }) => {
return `
@ -143,7 +143,7 @@ const createTextNode = ({
* hiding languages.
*
* @param {import("../fetchers/types").WakaTimeLang[]} languages The languages array.
* @return {void} The recalculated languages array.
* @returns {void} The recalculated languages array.
*/
const recalculatePercentages = (languages) => {
const totalSum = languages.reduce(