accept 0 as valid item count

This commit is contained in:
martin-mfg
2025-05-23 18:22:07 +00:00
parent 2b521ddc81
commit ec6e555a6b
+1 -1
View File
@@ -204,7 +204,7 @@ const totalItemsFetcher = async (username, repos, owners, type, filter) => {
}
const totalCount = res.data.total_count;
if (!totalCount || isNaN(totalCount)) {
if (isNaN(totalCount)) {
throw new CustomError(
"Could not fetch data from GitHub REST API.",
CustomError.GITHUB_REST_API_ERROR,