Skip to content

Commit 5fccec3

Browse files
committed
Fix unused variable warnings
1 parent 8c72228 commit 5fccec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/stallion.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def ride
1717

1818
def match?(request)
1919
method = request['REQUEST_METHOD']
20-
right_method = @methods.empty? or @methods.include?(method)
20+
@methods.empty? or @methods.include?(method)
2121
end
2222
end
2323

@@ -36,7 +36,7 @@ def in(path, *methods, &block)
3636

3737
def call(request, response)
3838
@request, @response = request, response
39-
@boxes.each do |(path, methods), mount|
39+
@boxes.each do |_, mount|
4040
if mount.match?(request)
4141
mount.ride
4242
end

0 commit comments

Comments
 (0)