]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call.
authorCharles A. Roelli <charles@aurox.ch>
Mon, 1 Oct 2018 19:41:11 +0000 (21:41 +0200)
committerCharles A. Roelli <charles@aurox.ch>
Mon, 1 Oct 2018 19:41:11 +0000 (21:41 +0200)
lisp/vc/vc.el

index d3d66d6fb5fba8eeefebf89b6997f3c080ea29cd..6962664d59f905bfbb70dda685049708dd4d0d0d 100644 (file)
@@ -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."