Skip to content

Commit

Permalink
Replace s-join for mapconcat function
Browse files Browse the repository at this point in the history
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 !:)
  • Loading branch information
Sliim committed Feb 25, 2015
1 parent fa73b0f commit c0b82b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-github-stars.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand All @@ -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))))
Expand Down

0 comments on commit c0b82b4

Please sign in to comment.