Permalink
Browse files

Useless use of hd/1

  • Loading branch information...
msantos committed Jul 1, 2010
1 parent c6aeb0c commit fcb3fca713faf1c7ec48b7318748246e40d150a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/spood.erl
View
@@ -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) ->

0 comments on commit fcb3fca

Please sign in to comment.