From 9f4971a0b7eafddeb7f5de908fecdbe2eef2638b Mon Sep 17 00:00:00 2001 From: Raoul Hess Date: Fri, 7 Nov 2014 08:52:41 +0100 Subject: [PATCH] Removed unnessary bin <> list convertion. --- src/git_utils.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/git_utils.erl b/src/git_utils.erl index bc4a53b..a1875c5 100644 --- a/src/git_utils.erl +++ b/src/git_utils.erl @@ -13,9 +13,8 @@ tags(RepoName, RepoUrl) -> <<>> -> []; ResultBin -> - ResultString = binary_to_list(ResultBin), - %% Here we need to do it differently!! - [list_to_binary(Tag) || Tag <- string:tokens(ResultString, "\n")] + Res = re:split(ResultBin, <<"\n">>), + lists:droplast(Res) end. %% @doc Returns the diversity.json for a tag in a repo