emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup 21ded874f7: Remove dead code from :to-throw matc


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 21ded874f7: Remove dead code from :to-throw matcher
Date: Tue, 27 Dec 2022 18:58:25 -0500 (EST)

branch: elpa/buttercup
commit 21ded874f7af380b593776eac06a87cf7f7ae439
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>

    Remove dead code from :to-throw matcher
    
    expected-signal-symbol is never unset after line 1 of the function.
---
 buttercup.el | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index f0829148a9..f69935bcbf 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -598,10 +598,6 @@ See also `buttercup-define-matcher'."
         (format "Probable incorrect use of `:to-throw' matcher: pass an 
expression instead of a function: `%S'"
                 unevaluated-expr)
         'yellow)))
-    ;; If no signal specificaiton, use `error' as the signal symbol
-    (when (and (null expected-signal-symbol)
-               (null expected-signal-args))
-      (setq expected-signal-symbol 'error))
     ;; Set the above 4 variables
     (condition-case err
         (setq expr-value
@@ -2128,9 +2124,11 @@ ARG is ‘toggle’; disable otherwise."
            (add-hook 'after-load-functions #'buttercup-check-for-stale-elc)))
         (t (remove-hook 'after-load-functions 
#'buttercup-check-for-stale-elc))))
 
+(provide 'buttercup)
+;;; buttercup.el ends here
+
 ;; Local Variables:
 ;; indent-tabs-mode: nil
 ;; sentence-end-double-space: nil
+;; tab-width: 8
 ;; End:
-(provide 'buttercup)
-;;; buttercup.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]