~niklaseklund/egerrit

987c6dac16d60969ad944ef5eb70da4c32616ac6 — Niklas Eklund a month ago d608c5f
Handle when egerrit-job-function is nil
1 files changed, 5 insertions(+), 3 deletions(-)

M egerrit-core.el
M egerrit-core.el => egerrit-core.el +5 -3
@@ 70,9 70,11 @@
(defun egerrit-get-detailed-change (change)
  "Return a detailed `egerrit-change' object for CHANGE."
  (let* ((changeid (url-unhex-string (egerrit-change-id change)))
         (json-entity (elt (egerrit--read-change changeid) 0)))
    (thread-last (egerrit--create-detailed-change json-entity)
                 (funcall egerrit-job-function))))
         (json-entity (elt (egerrit--read-change changeid) 0))
         (detailed-change (egerrit--create-detailed-change json-entity)))
    (if egerrit-job-function
        (funcall egerrit-job-function detailed-change)
      detailed-change)))

(cl-defmethod egerrit-annotator-config (_entity)
  "Return annotation configuration for ENTITY.")