Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogruyol committed May 9, 2017
1 parent e695a49 commit 9f01eb9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion shard.yml
@@ -1,5 +1,5 @@
name: kemal
version: 0.18.3
version: 0.19.0

dependencies:
radix:
Expand Down
8 changes: 4 additions & 4 deletions spec/context_spec.cr
Expand Up @@ -48,10 +48,10 @@ describe "Context" do
get "/" do |env|
env.set "key", "value"
{
key: env.get("key"),
before_get: env.get("before_get"),
before_get_int: env.get("before_get_int"),
before_get_float: env.get("before_get_float"),
key: env.get("key"),
before_get: env.get("before_get"),
before_get_int: env.get("before_get_int"),
before_get_float: env.get("before_get_float"),
before_get_context_test: env.get("before_get_context_test"),
}
end
Expand Down
2 changes: 1 addition & 1 deletion src/kemal/ext/context.cr
Expand Up @@ -5,7 +5,7 @@
class HTTP::Server
class Context
# :nodoc:
STORE_MAPPINGS = [ Nil, String, Int32, Int64, Float64, Bool ]
STORE_MAPPINGS = [Nil, String, Int32, Int64, Float64, Bool]

macro finished
alias StoreTypes = Union({{ *STORE_MAPPINGS }})
Expand Down
2 changes: 1 addition & 1 deletion src/kemal/route_handler.cr
Expand Up @@ -21,7 +21,7 @@ module Kemal
# a corresponding `HEAD` route.
def add_route(method, path, &handler : HTTP::Server::Context -> _)
add_to_radix_tree method, path, Route.new(method, path, &handler)
add_to_radix_tree("HEAD", path, Route.new("HEAD", path) {|ctx| ""}) if method == "GET"
add_to_radix_tree("HEAD", path, Route.new("HEAD", path) { |ctx| "" }) if method == "GET"
end

# Check if a route is defined and returns the lookup
Expand Down

0 comments on commit 9f01eb9

Please sign in to comment.