]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/ange-ftp.el: Fix problem pointed out by compiler warning
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Mar 2021 00:06:45 +0000 (19:06 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Mar 2021 00:06:45 +0000 (19:06 -0500)
(ange-ftp-fix-name-for-bs2000): Remove redundant `boundp` test.

lisp/net/ange-ftp.el

index fa13dd57d1d479da3a553899f614d9259b8f55f1..d27eeab82b1202ed2b1e21bf7ebe3df430757cd3 100644 (file)
@@ -6111,8 +6111,7 @@ Other orders of $ and _ seem to all work just fine.")
                                       (1- (match-end 2)))))
                (filename (if (match-beginning 3)
                              (substring name (match-beginning 3)))))
-           (if (and (boundp 'filename)
-                    (stringp filename)
+           (if (and (stringp filename)
                     (string-match "[#@].+" filename))
                (setq filename (concat ange-ftp-bs2000-special-prefix
                                       (substring filename 1))))