Skip to content

Commit

Permalink
Useless use of hd/1
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jul 1, 2010
1 parent c6aeb0c commit fcb3fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spood.erl
Expand Up @@ -59,7 +59,7 @@ nameserver(NS) ->

device(undefined) ->
{ok, S} = procket:listen(0, [{protocol, udp}, {family, inet}, {type, dgram}]),
Dev = hd([ If || If <- packet:iflist(), ipcheck(S, If) ]),
[Dev|_] = [ If || If <- packet:iflist(), ipcheck(S, If) ],
procket:close(S),
Dev;
device(Dev) ->
Expand Down

0 comments on commit fcb3fca

Please sign in to comment.