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

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

[nongnu] elpa/dart-mode e01234a 113/192: Use funcall rather than apply w


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode e01234a 113/192: Use funcall rather than apply where appropriate
Date: Sun, 29 Aug 2021 11:02:01 -0400 (EDT)

branch: elpa/dart-mode
commit e01234a74ba8fc9b7657697216fc62dafd292694
Author: Natalie Weizenbaum <nex342@gmail.com>
Commit: Natalie Weizenbaum <nex342@gmail.com>

    Use funcall rather than apply where appropriate
---
 dart-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index 2520a30..1515511 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -970,7 +970,7 @@ the callback for that request is given the json decoded 
response."
                  (callbacks (dart--get dart--analysis-server-subscriptions 
event)))
       (dolist (callback callbacks)
         (let ((subscription (cons event callback)))
-          (apply callback params subscription nil))))))
+          (funcall callback params subscription))))))
 
 (defun dart--analysis-server-subscribe (event callback)
   "Registers CALLBACK to be called for each EVENT of the given type.
@@ -1289,7 +1289,7 @@ to add a header and otherwise prepare it for displaying 
results."
      "*Dart Search*" nil nil
      (dart-popup-mode)
      (setq buffer (current-buffer))
-     (apply callback nil)
+     (funcall callback)
      (setq beginning-of-results (point))
 
      (dart--analysis-server-subscribe
@@ -1646,7 +1646,7 @@ Only set in `dart-popup-mode'.")
   "Re-runs the logic that generated the current buffer."
   (interactive)
   (when dart--do-it-again-callback
-    (apply dart--do-it-again-callback nil)))
+    (funcall dart--do-it-again-callback)))
 
 
 ;;; Formatting



reply via email to

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