Skip to content

Commit

Permalink
Merge pull request #20 from dnet/list-comprehension
Browse files Browse the repository at this point in the history
Replaced unnecessary list comprehension with lists:map/2
  • Loading branch information
tim committed Jul 17, 2013
2 parents 12f4627 + b0f4a2f commit a26ad96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth.erl
Expand Up @@ -263,7 +263,7 @@ uri_join(Values) ->
uri_join(Values, "&").

uri_join(Values, Separator) ->
string:join([uri_encode(Value) || Value <- Values], Separator).
string:join(lists:map(fun uri_encode/1, Values), Separator).

intercalate(Sep, Xs) ->
lists:concat(intersperse(Sep, Xs)).
Expand Down

0 comments on commit a26ad96

Please sign in to comment.