Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

name unused variables with _

  • Loading branch information...
commit 9b06965994d3498d2af44a6937d4dc859091042d 1 parent e5fd9c8
@godfat authored
View
2  lib/rest-core/client/facebook.rb
@@ -247,7 +247,7 @@ def calculate_sig cookies
end
def fbs_without_sig cookies
- cookies.reject{ |(k, v)| k == 'sig' }.sort.map{ |a| a.join('=') }
+ cookies.reject{ |(k, _)| k == 'sig' }.sort.map{ |a| a.join('=') }
end
def merge_data lhs, rhs
View
4 lib/rest-core/client/flurry.rb
@@ -68,7 +68,7 @@ def weekly array
- (current - start) / (86400*7)
# calling .last to discard week numbers created by group_by
}.sort.map(&:last).map{ |week|
- week.map{ |(date, num)| num }.inject(&:+) }
+ week.map{ |(_, num)| num }.inject(&:+) }
end
# >> f.sum(f.weekly(f.metrics('ActiveUsers', {}, :weeks => 4)))
@@ -98,7 +98,7 @@ def calculate_query_and_opts query, opts
[query.merge(:startDate => startDate,
:endDate => endDate),
- opts.reject{ |k, v| [:days, :weeks, :months].include?(k) }]
+ opts.reject{ |k, _| [:days, :weeks, :months].include?(k) }]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.