public
Description: An Erlang client library for beanstalkd
Homepage: http://tfletcher.com/dev/erlang-beanstalk
Clone URL: git://github.com/tim/erlang-beanstalk.git
Wannabe Librarian.
tim (author)
Wed May 14 11:47:11 -0700 2008
commit  22419f01e0d8b19c74825c932d495baa501ab821
tree    98453dacf07007afd04acbe55ad6aeeae8be3dd9
parent  4c218a12a59888842b301253831935f2c5341833
...
202
203
204
205
206
207
208
 
209
210
211
...
202
203
204
 
 
 
 
205
206
207
208
0
@@ -202,10 +202,7 @@ build_command(Parts) when is_list(Parts) ->
0
   lists:reverse([$\n,$\r|lists:foldl(fun build_command/2, [], Parts)]).
0
 
0
 build_command(Part, Message) when is_list(Message) ->
0
- reverse_onto(case Message of [] -> []; _ -> [32|Message] end, to_string(Part)).
0
-
0
-reverse_onto(Ys, Xs) when is_list(Ys), is_list(Xs) ->
0
- lists:foldl(fun(X, Acc) -> [X|Acc] end, Ys, Xs).
0
+ lists:reverse(to_string(Part), case Message of [] -> []; _ -> [32|Message] end).
0
 
0
 to_string(Int) when is_integer(Int) ->
0
   integer_to_list(Int);

Comments

    No one has commented yet.