branch: elpa/go-mode
commit 228ded417ce8d3042e7a02016e10c409957c61a7
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>

    Use cons instead of append
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index d4ae988..5b5f4a9 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1356,7 +1356,7 @@ uncommented, otherwise a new import will be added."
   (let* ((output (process-lines go-command "env" "GOROOT" "GOPATH"))
          (root (car output))
          (paths (split-string (cadr output) path-separator)))
-    (append (list root) paths)))
+    (cons root paths)))
 
 (defun go--string-prefix-p (s1 s2 &optional ignore-case)
   "Return non-nil if S1 is a prefix of S2.

Reply via email to