diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-04-24 13:34:51 +0200 |
---|---|---|
committer | Xinglu Chen <public@yoctocell.xyz> | 2021-04-24 13:35:41 +0200 |
commit | 2aee67ba49551d2e62d16877a7c742d3ef607186 (patch) | |
tree | f73ffc68f462ce82b050097a210478dbfeea2806 | |
parent | 5db8cae2910c5fca47bdbebce8337218cb94109c (diff) |
git-email: Bind unused variable to _.
This will fix the compiler warning.
git-email.el:327:54: Warning: Unused lexical variable `body'
* git-email.el (git-email--compose-email): rename ‘body’ to ‘_’.
-rw-r--r-- | git-email.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git-email.el b/git-email.el index 4dbb805..f364367 100644 --- a/git-email.el +++ b/git-email.el @@ -327,10 +327,10 @@ 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)))) + (let ((_ (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))))) |