Skip to content

Commit

Permalink
fix Crystal 1.5.0 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogruyol committed Jun 29, 2022
1 parent f8fc8ce commit 268e501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ require "../src/*"
include Kemal

class CustomLogHandler < Kemal::BaseLogHandler
def call(env)
call_next env
def call(context)
call_next(context)
end

def write(message)
Expand Down
4 changes: 2 additions & 2 deletions src/kemal/handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module Kemal
end
end

def call(env : HTTP::Server::Context)
call_next(env)
def call(context : HTTP::Server::Context)
call_next(context)
end

# Processes the path based on `only` paths which is a `Array(String)`.
Expand Down

0 comments on commit 268e501

Please sign in to comment.