fix Crystal 1.5.0 warnings

This commit is contained in:
Serdar Dogruyol 2022-06-29 13:31:28 +03:00
parent f8fc8ce8c8
commit 268e501a63
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ require "../src/*"
include Kemal include Kemal
class CustomLogHandler < Kemal::BaseLogHandler class CustomLogHandler < Kemal::BaseLogHandler
def call(env) def call(context)
call_next env call_next(context)
end end
def write(message) def write(message)

View File

@ -27,8 +27,8 @@ module Kemal
end end
end end
def call(env : HTTP::Server::Context) def call(context : HTTP::Server::Context)
call_next(env) call_next(context)
end end
# Processes the path based on `only` paths which is a `Array(String)`. # Processes the path based on `only` paths which is a `Array(String)`.