mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-08 02:15:32 +00:00
Set unused var to _
This commit is contained in:
@@ -80,7 +80,7 @@ module Linguist
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Compute total size
|
# Compute total size
|
||||||
@size = @sizes.inject(0) { |s,(k,v)| s + v }
|
@size = @sizes.inject(0) { |s,(_,v)| s + v }
|
||||||
|
|
||||||
# Get primary language
|
# Get primary language
|
||||||
if primary = @sizes.max_by { |(_, size)| size }
|
if primary = @sizes.max_by { |(_, size)| size }
|
||||||
|
|||||||
Reference in New Issue
Block a user