Skip to content

Commit

Permalink
Silence byte-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Oct 6, 2023
1 parent 4965ed7 commit 804c5e8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions lisp/forge-db.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
(require 'emacsql)

;; For `closql--db-update-schema':
(declare-function forge--object-id "forge-core")
(declare-function forge-get-issue "forge-core")
(declare-function forge-get-pullreq "forge-core")
(declare-function forge--object-id "forge-core")
(declare-function forge-get-repository "forge-core" (demand))

(eval-when-compile
(cl-pushnew 'number eieio--known-slot-names)
(cl-pushnew 'value eieio--known-slot-names))

;;; Options
Expand Down Expand Up @@ -438,12 +440,15 @@
(emacsql db [:alter-table pullreq :add-column slug :default nil])
(emacsql db [:alter-table issue :add-column slug :default nil])
(dolist (o (closql-entries (forge-db) nil 'forge-pullreq))
(oset o slug (format "%s%s"
(if (forge-gitlab-repository--eieio-childp
(forge-get-repository o))
"!"
"#")
(oref o number))))
(oset o slug
(format
"%s%s"
(if (and (fboundp 'forge-gitlab-repository--eieio-childp)
(forge-gitlab-repository--eieio-childp
(forge-get-repository o)))
"!"
"#")
(oref o number))))
(dolist (o (closql-entries (forge-db) nil 'forge-issue))
(oset o slug (format "#%s" (oref o number))))
(closql--db-set-version db (setq version 10))
Expand Down

0 comments on commit 804c5e8

Please sign in to comment.