mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Code fixes reported by static code analysis (#450)
This commit is contained in:
parent
f3f7e319ae
commit
c2236acf3a
14 changed files with 60 additions and 65 deletions
|
@ -79,7 +79,7 @@ describe "Handler" do
|
|||
end
|
||||
add_handler CustomTestHandler.new
|
||||
|
||||
get "/" do |env|
|
||||
get "/" do
|
||||
" Great"
|
||||
end
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
|
@ -89,7 +89,7 @@ describe "Handler" do
|
|||
end
|
||||
|
||||
it "runs specified only_routes in middleware" do
|
||||
get "/only" do |env|
|
||||
get "/only" do
|
||||
"Get"
|
||||
end
|
||||
add_handler OnlyHandler.new
|
||||
|
@ -99,7 +99,7 @@ describe "Handler" do
|
|||
end
|
||||
|
||||
it "doesn't run specified exclude_routes in middleware" do
|
||||
get "/" do |env|
|
||||
get "/" do
|
||||
"Get"
|
||||
end
|
||||
get "/exclude" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue