Skip to content
Browse files

replaced unnecessary list comprehension with lists:map/2

  • Loading branch information...
1 parent 12f4627 commit b0f4a2f463c44aa05a899786d6c0e8d8b1ec83d1 @dnet dnet committed Jul 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/oauth.erl
View
2 src/oauth.erl
@@ -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)).

0 comments on commit b0f4a2f

Please sign in to comment.
Something went wrong with that request. Please try again.