branch: elpa/dart-mode
commit e01234a74ba8fc9b7657697216fc62dafd292694
Author: Natalie Weizenbaum <[email protected]>
Commit: Natalie Weizenbaum <[email protected]>
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