Skip to content

Commit

Permalink
Add '_' prefix to an unused variable
Browse files Browse the repository at this point in the history
lib/cool.io/dns_resolver.rb:171: warning: assigned but unused variable - ancount
  • Loading branch information
okkez committed Mar 30, 2016
1 parent 9a8f071 commit 368e58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cool.io/dns_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def response_address(message)
return unless rcode == 0

# Extract the question and answer counts
qdcount, ancount = message[4..7].unpack('nn').map { |n| n.to_i }
qdcount, _ancount = message[4..7].unpack('nn').map { |n| n.to_i }

# We only asked one question
return unless qdcount == 1
Expand Down

0 comments on commit 368e58f

Please sign in to comment.