From 79be8b8c676fc21f9456d6ab3ca52546a531949c Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 20 Jul 2012 15:07:19 -0500 Subject: [PATCH] Set unused var to _ --- lib/linguist/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/repository.rb b/lib/linguist/repository.rb index a91b9929..20b59700 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 }