Skip to content

Commit

Permalink
forge--ghub-update-notifications: Remove unnecessary conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Oct 3, 2023
1 parent 3017d01 commit a430942
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lisp/forge-github.el
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,14 @@
(forge-sql [:delete-from notification
:where (= forge $s1)]
forge)
(pcase-dolist (`(,key ,repo ,query ,obj) notifs)
(pcase-dolist (`(,key ,repo ,_ ,obj) notifs)
(closql-insert (forge-db) obj)
(forge--zap-repository-cache (forge-get-repository obj))
(when query
(oset (funcall (if (eq (oref obj type) 'issue)
#'forge--update-issue
#'forge--update-pullreq)
repo (cdr (cadr (assq key topics))) nil)
unread-p (oref obj unread-p))))))
(oset (funcall (if (eq (oref obj type) 'issue)
#'forge--update-issue
#'forge--update-pullreq)
repo (cdr (cadr (assq key topics))) nil)
unread-p (oref obj unread-p)))))

(cl-defmethod forge-topic-mark-read ((_ forge-github-repository) topic)
(when (oref topic unread-p)
Expand Down

0 comments on commit a430942

Please sign in to comment.