mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warnings: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48559765b1
commit
b105cbc809
2 changed files with 2 additions and 4 deletions
|
@ -136,10 +136,8 @@ module URI
|
|||
@headers = []
|
||||
|
||||
to, header = @opaque.split('?', 2)
|
||||
addrs = to.split(/[,;]/)
|
||||
# allow semicolon as a addr-spec separator
|
||||
# http://support.microsoft.com/kb/820868
|
||||
|
||||
unless /\A(?:[^@,;]+@[^@,;]+(?:\z|[,;]))*\z/ =~ to
|
||||
raise InvalidComponentError,
|
||||
"unrecognised opaque part for mailtoURL: #{@opaque}"
|
||||
|
|
|
@ -6,7 +6,7 @@ module TracePointChecker
|
|||
|
||||
module ZombieTraceHunter
|
||||
def before_setup
|
||||
@tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]}
|
||||
@tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, _deleted)| [k, activated]}
|
||||
|
||||
super
|
||||
end
|
||||
|
@ -17,7 +17,7 @@ module TracePointChecker
|
|||
# detect zombie traces.
|
||||
assert_equal(
|
||||
@tracepoint_captured_stat,
|
||||
TracePoint.stat.map{|k, (activated, deleted)| [k, activated]},
|
||||
TracePoint.stat.map{|k, (activated, _deleted)| [k, activated]},
|
||||
"The number of active trace events was changed"
|
||||
)
|
||||
# puts "TracePoint - deleted: #{deleted}" if deleted > 0
|
||||
|
|
Loading…
Reference in a new issue