Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'anuraghazra-master'
  • Loading branch information
developStorm committed Jul 24, 2022
commit 66c3cd67c8d4e5f7c66c3efb9c026c68f91835e1
8 changes: 7 additions & 1 deletion src/fetchers/top-languages-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ const fetcher = (variables, token) => {
);
};

/**
* @param {string} username
* @param {string[]} ownerAffiliations
* @param {string[]} exclude_repo
* @returns {Promise<import("./types").TopLangData>}
*/
async function fetchTopLanguages(username, ownerAffiliations, exclude_repo = []) {
if (!username) throw Error("Invalid username");
if (!username) throw new MissingParamError(["username"]);

// Set default value for ownerAffiliations in GraphQL query won't work because
// parseArray() will always return an empty array even nothing was specified
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.