Skip to content

Commit

Permalink
move setq to guarded branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersoncferreira committed Oct 2, 2021
1 parent 74c0ec1 commit 395359e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions github-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ Github API provides only the originalPosition in the query.")
(defun github-review-format-diff (gitdiff pr)
"Formats a GITDIFF and PR to save it for review."
(let-alist pr
(setq github-review-comment-pos nil)
(concat
(github-review-to-comments .title)
"\n~"
Expand All @@ -442,11 +441,13 @@ Github API provides only the originalPosition in the query.")
(-map #'github-review-format-review reviews)))
"\n"))
(if github-review-view-comments-in-code-lines
(-reduce-from
(lambda (acc-gitdiff node)
(github-review-place-review-comments acc-gitdiff node))
(a-get gitdiff 'message)
.reviews.nodes)
(progn
(setq github-review-comment-pos nil)
(-reduce-from
(lambda (acc-gitdiff node)
(github-review-place-review-comments acc-gitdiff node))
(a-get gitdiff 'message)
.reviews.nodes))
(a-get gitdiff 'message)))))

;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 395359e

Please sign in to comment.