mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-25 13:38:50 +00:00
refactor: jsdoc in utils & minor changes (#1377)
* refactor: jsdoc in utils & minor changes * chore: jsdoc Card class * chore: jsdoc for getStyles
This commit is contained in:
+1
-3
@@ -34,8 +34,6 @@ module.exports = async (req, res) => {
|
||||
border_radius,
|
||||
border_color,
|
||||
} = req.query;
|
||||
let stats;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
|
||||
if (blacklist.includes(username)) {
|
||||
@@ -47,7 +45,7 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
stats = await fetchStats(
|
||||
const stats = await fetchStats(
|
||||
username,
|
||||
parseBoolean(count_private),
|
||||
parseBoolean(include_all_commits),
|
||||
|
||||
+1
-3
@@ -27,8 +27,6 @@ module.exports = async (req, res) => {
|
||||
border_color,
|
||||
} = req.query;
|
||||
|
||||
let repoData;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
|
||||
if (blacklist.includes(username)) {
|
||||
@@ -40,7 +38,7 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
repoData = await fetchRepo(username, repo);
|
||||
const repoData = await fetchRepo(username, repo);
|
||||
|
||||
let cacheSeconds = clampValue(
|
||||
parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
|
||||
|
||||
+1
-3
@@ -31,8 +31,6 @@ module.exports = async (req, res) => {
|
||||
border_radius,
|
||||
border_color,
|
||||
} = req.query;
|
||||
let topLangs;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
|
||||
if (blacklist.includes(username)) {
|
||||
@@ -44,7 +42,7 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
topLangs = await fetchTopLanguages(
|
||||
const topLangs = await fetchTopLanguages(
|
||||
username,
|
||||
parseArray(exclude_repo),
|
||||
parseArray(hide),
|
||||
|
||||
Reference in New Issue
Block a user