From ac56973663a7623f116de666737e7cc7b9b6b920 Mon Sep 17 00:00:00 2001 From: Serdar Dogruyol Date: Fri, 6 Oct 2017 14:59:53 +0300 Subject: [PATCH] Format --- src/kemal/config.cr | 10 +++++----- src/kemal/helpers/helpers.cr | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 1c7f837..70ba92a 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -6,11 +6,11 @@ module Kemal # Kemal.config # ``` class Config - INSTANCE = Config.new - HANDLERS = [] of HTTP::Handler - CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler) - FILTER_HANDLERS = [] of HTTP::Handler - ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String + INSTANCE = Config.new + HANDLERS = [] of HTTP::Handler + CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler) + FILTER_HANDLERS = [] of HTTP::Handler + ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String {% if flag?(:without_openssl) %} @ssl : Bool? diff --git a/src/kemal/helpers/helpers.cr b/src/kemal/helpers/helpers.cr index ed23c9c..2a2b87a 100644 --- a/src/kemal/helpers/helpers.cr +++ b/src/kemal/helpers/helpers.cr @@ -46,7 +46,6 @@ end # # ``` # class MyCustomLogger < Kemal::BaseLogHandler -# # def call(env) # puts "I'm logging some custom stuff here." # call_next(env) # => This calls the next handler