From: Charles A. Roelli Date: Mon, 1 Oct 2018 19:41:11 +0000 (+0200) Subject: * lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call. X-Git-Tag: emacs-27.0.90~4353 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfbb207ff946792efebb31c0c59b8245c304544a;p=emacs.git * lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call. --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index d3d66d6fb5f..6962664d59f 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1536,8 +1536,7 @@ The optional argument REV may be a string specifying the new revision level (only supported for some older VCSes, like RCS and CVS). Runs the normal hooks `vc-before-checkin-hook' and `vc-checkin-hook'." - (when vc-before-checkin-hook - (run-hooks 'vc-before-checkin-hook)) + (run-hooks 'vc-before-checkin-hook) (vc-start-logentry files comment initial-contents "Enter a change comment."