Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36eb17f

Browse files
authored
Refactor: Wakatime card: Add missing return statements for helper functions (anuraghazra#2998)
* Refactor: Wakatime card: Add missing return statements for helper functions* dev
1 parent1ee6137 commit36eb17f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/cards/wakatime-card.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const noCodingActivityNode = ({ color, text }) => {
4343
*@param {import("../fetchers/types").WakaTimeLang} args.lang The languages array.
4444
*@param {number} args.x The x position of the language node.
4545
*@param {number} args.y The y position of the language node.
46+
*@returns {string} The compact layout language SVG node.
4647
*/
4748
constcreateCompactLangNode=({ lang, x, y})=>{
4849
constcolor=languageColors[lang.name]||"#858585";
@@ -63,6 +64,7 @@ const createCompactLangNode = ({ lang, x, y }) => {
6364
*@param {Object} args The function arguments.
6465
*@param {import("../fetchers/types").WakaTimeLang[]} args.langs The language objects.
6566
*@param {number} args.y The y position of the language node.
67+
*@returns {string[]} The language text node items.
6668
*/
6769
constcreateLanguageTextNode=({ langs, y})=>{
6870
returnlangs.map((lang,index)=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp