Skip to content

Commit

Permalink
refactor: remove arrow function body braces (anuraghazra#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective authored and infinity-plus committed Sep 24, 2022
1 parent 0b05d29 commit 810316a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/fetchers/top-languages-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 810316a

Please sign in to comment.