mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-11-21 01:16:23 +08:00
refactor: remove arrow function body braces (#1917)
This commit is contained in:
parent
7ceec92455
commit
b6d75b2e65
@ -68,14 +68,10 @@ async function fetchTopLanguages(username, exclude_repo = []) {
|
||||
// filter out repositories to be hidden
|
||||
repoNodes = repoNodes
|
||||
.sort((a, b) => b.size - a.size)
|
||||
.filter((name) => {
|
||||
return !repoToHide[name.name];
|
||||
});
|
||||
.filter((name) => !repoToHide[name.name]);
|
||||
|
||||
repoNodes = repoNodes
|
||||
.filter((node) => {
|
||||
return node.languages.edges.length > 0;
|
||||
})
|
||||
.filter((node) => node.languages.edges.length > 0)
|
||||
// flatten the list of language nodes
|
||||
.reduce((acc, curr) => curr.languages.edges.concat(acc), [])
|
||||
.reduce((acc, prev) => {
|
||||
|
Loading…
Reference in New Issue
Block a user