aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-07-20 15:07:19 -0500
committerJoshua Peek <josh@joshpeek.com>2012-07-20 15:07:19 -0500
commit79be8b8c676fc21f9456d6ab3ca52546a531949c (patch)
tree2dfc25a0c9008f839607e44ed79ee78d78775d74 /lib
parent3f391c8694fdbb489fdca535811de85b6048ff3d (diff)
Set unused var to _
Diffstat (limited to 'lib')
-rw-r--r--lib/linguist/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/linguist/repository.rb b/lib/linguist/repository.rb
index a91b992..20b5970 100644
--- a/lib/linguist/repository.rb
+++ b/lib/linguist/repository.rb
@@ -80,7 +80,7 @@ module Linguist
end
# Compute total size
- @size = @sizes.inject(0) { |s,(k,v)| s + v }
+ @size = @sizes.inject(0) { |s,(_,v)| s + v }
# Get primary language
if primary = @sizes.max_by { |(_, size)| size }