branch: elpa/projectile
commit e3e67f8740a86f8053e687ee28091555d7aad35a
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Use eq instead of string= for symbol comparisons
    
    system-type and the return value of projectile-project-vcs are symbols,
    not strings.  string=/string-equal happened to work due to implicit
    coercion, but eq is the correct comparison for symbols.
---
 projectile.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/projectile.el b/projectile.el
index ec4d09884d..f880e717d2 100644
--- a/projectile.el
+++ b/projectile.el
@@ -783,8 +783,7 @@ Set to nil to disable listing submodules contents."
   :package-version '(projectile . "2.9.0"))
 
 (defcustom projectile-fossil-command (concat "fossil ls | "
-                                             (when (string-equal system-type
-                                                                 "windows-nt")
+                                             (when (eq system-type 'windows-nt)
                                                "dos2unix | ")
                                              "tr '\\n' '\\0'")
   "Command used by projectile to get the files in a fossil project."
@@ -6113,7 +6112,7 @@ Raise an error if there is no dirty project."
     (let ((projects projectile-known-projects)
           (status ()))
       (dolist (project projects)
-        (when (and (projectile-keep-project-p project) (not (string= 'none 
(projectile-project-vcs project))))
+        (when (and (projectile-keep-project-p project) (not (eq 'none 
(projectile-project-vcs project))))
           (let ((tmp-status (projectile-check-vcs-status project)))
             (when tmp-status
               (setq status (cons (list project tmp-status) status))))))

Reply via email to