Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogruyol committed Jan 16, 2016
1 parent 7ffa670 commit 5fb5a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kemal/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Kemal::Logger < HTTP::Handler
method = request.method.colorize(methodColor)
end

output_message = "#{time} |#{status_code}#{method} #{request.resource} - (#{elapsed_text})\n"
output_message = "#{time} |#{status_code}#{method} #{request.resource} - #{elapsed_text}\n"
write output_message
response
end
Expand Down
3 changes: 1 addition & 2 deletions src/kemal/static_file_handler.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class Kemal::StaticFileHandler < HTTP::StaticFileHandler
def call(request)
request_path = request.path.not_nil!
return call_next(request) if request_path == "/"
return call_next(request) if request.path.not_nil! == "/"
super
end
end

0 comments on commit 5fb5a4c

Please sign in to comment.