aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-03-13 10:58:16 +0100
committerXinglu Chen <public@yoctocell.xyz>2021-03-13 11:06:25 +0100
commit49571ab4c2ddd07db68aac300bdbc9c6bfd31b0b (patch)
treee525fed898c000a9c1e733d5ad7ac346ebba588e
parent0535b7a3ef59908d10fe5f0f5910887257d8050b (diff)
git-email: Remove redundant let binding.
* git-email.el (git-email--compose-email): Remove redundant let binding.
-rw-r--r--git-email.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/git-email.el b/git-email.el
index 3db1ca3..7fbce16 100644
--- a/git-email.el
+++ b/git-email.el
@@ -319,10 +319,9 @@ them into the message buffer."
(seq-filter #'git-email--remove-subject used-headers))
;; Insert diff at the beginning of the body
(goto-char (point-min))
- (let ((body (or (re-search-forward
- "^<#part \\(encrypt\\|sign\\)=.*mime>$"
- nil t)
- (re-search-forward (regexp-quote mail-header-separator) nil t))))
+ (or (re-search-forward
+ "^<#part \\(encrypt\\|sign\\)=.*mime>$" nil t)
+ (re-search-forward (regexp-quote mail-header-separator) nil t)
(save-excursion
(insert (git-email--fontify-using-faces
(git-email--fontify-diff diff)))))