From: Michael Albinus Date: Sat, 12 Aug 2023 13:17:32 +0000 (+0200) Subject: Remove superfluous check from vc-hooks.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26688e0e9c2cd74f4ea7866ab08773388aa084c4;p=emacs.git Remove superfluous check from vc-hooks.el * lisp/vc/vc-hooks.el (vc-registered): Don't check whether `file-name-handler-alist' is bound, the check is superfluous. --- diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index 00a7659209e..e75165ea2e9 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el @@ -321,8 +321,7 @@ backend is tried first." ((and (file-name-directory file) (string-match vc-ignore-dir-regexp (file-name-directory file))) nil) - ((and (boundp 'file-name-handler-alist) - (setq handler (find-file-name-handler file 'vc-registered))) + ((setq handler (find-file-name-handler file 'vc-registered)) ;; handler should set vc-backend and return t if registered (funcall handler 'vc-registered file)) (t