emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 97f55b8 131/495: style changes


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 97f55b8 131/495: style changes
Date: Sat, 7 Aug 2021 09:04:58 -0400 (EDT)

branch: elpa/go-mode
commit 97f55b86a72043e327d0a7c2a0ff908282cca456
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    style changes
---
 go-mode.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index cd8e5d0..8ba0fbd 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -745,7 +745,7 @@ uncommented, otherwise a new import will be added."
 (defun go-root-and-paths ()
   (let* ((output (split-string (shell-command-to-string "go env GOROOT 
GOPATH") "\n"))
          (root (car output))
-         (paths (split-string (car (cdr output)) ":")))
+         (paths (split-string (cadr output) ":")))
     (append (list root) paths)))
 
 (defun go--string-prefix-p (s1 s2 &optional ignore-case)
@@ -760,10 +760,10 @@ uncommented, otherwise a new import will be added."
         (dolist (file files)
           (unless (member file '("." ".."))
             (let ((file (concat dir "/" file)))
-              (when (file-directory-p file)
-                (setq dirs (append (cons file
-                                         (go--directory-dirs file))
-                                   dirs))))))
+              (if (file-directory-p file)
+                  (setq dirs (append (cons file
+                                           (go--directory-dirs file))
+                                     dirs))))))
         dirs)
     '()))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]