Skip to content

Commit

Permalink
Removed unnessary bin <> list convertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raoul Hess committed Nov 7, 2014
1 parent 6bf46a8 commit 9f4971a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/git_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f4971a

Please sign in to comment.