From c0b82b46177429924a2cccaaa51a80167573626f Mon Sep 17 00:00:00 2001 From: Sliim Date: Wed, 25 Feb 2015 20:44:29 +0100 Subject: [PATCH] Replace `s-join` for `mapconcat` function This package requires the `s.el` library only for 2 occurences of `s-join` function. `s-join` is only a wrapper for `mapconcat` so we don't need to have the `s.el` library installed, we can use directly the built-in `mapconcat` function !:) --- helm-github-stars.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-github-stars.el b/helm-github-stars.el index d644558..7681d7d 100644 --- a/helm-github-stars.el +++ b/helm-github-stars.el @@ -69,7 +69,7 @@ (disable-shortcuts) (init . (lambda () (with-current-buffer (helm-candidate-buffer 'local) - (insert (s-join "\n" (hgs/get-github-stars)))))) + (insert (mapconcat 'identity (hgs/get-github-stars) "\n"))))) (candidates-in-buffer) (action . (lambda (candidate) (let ((repo (substring candidate 0 (string-match " - " candidate)))) @@ -81,7 +81,7 @@ (disable-shortcuts) (init . (lambda () (with-current-buffer (helm-candidate-buffer 'local) - (insert (s-join "\n" (hgs/get-github-repos)))))) + (insert (mapconcat 'identity (hgs/get-github-repos) "\n"))))) (candidates-in-buffer) (action . (lambda (candidate) (let ((repo (substring candidate 0 (string-match " - " candidate))))