Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Update 'paradox--package-repo-list' even if the repos hasn't star #179

Closed
wants to merge 2 commits into from
Closed
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
11 changes: 5 additions & 6 deletions helpers/paradox-counter.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ Also saves result to `package-star-count'"
(paradox-log "%s / %s" (incf i) name)
(pcase .fetcher
(`"github"
(let ((count (paradox-fetch-star-count .repo)))
(if (numberp count)
(progn
(puthash name count paradox--star-count)
(puthash name .repo paradox--package-repo-list))
(paradox-log "FAILED: %s / %s" i name))))
(progn
(let ((count (paradox-fetch-star-count .repo)))
(when (numberp count)
(puthash name count paradox--star-count)))
(puthash name .repo paradox--package-repo-list)))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the indentation is a bit off here because you're using tabs. Could you switch to spaces?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope the last commit fix this.

(`"wiki"
(puthash name t paradox--wiki-packages)))))))))
(paradox-list-to-file))
Expand Down