Skip to content

Commit

Permalink
Refactor method
Browse files Browse the repository at this point in the history
I just don't like the `[] of SomeType` syntax.
  • Loading branch information
akadusei committed Jun 23, 2024
1 parent c64f35c commit 777c9b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app_server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class AppServer < Lucky::BaseAppServer
# Learn about middleware with HTTP::Handlers:
# https://luckyframework.org/guides/http-and-routing/http-handlers
def middleware : Array(HTTP::Handler)
[
Array(HTTP::Handler){
Lucky::RequestIdHandler.new,
Lucky::ForceSSLHandler.new,
Lucky::HttpMethodOverrideHandler.new,
Expand All @@ -20,7 +20,7 @@ class AppServer < Lucky::BaseAppServer
),
Lucky::StaticFileHandler.new("./public", false),
Lucky::RouteNotFoundHandler.new,
] of HTTP::Handler
}
end

def listen : Nil
Expand Down

0 comments on commit 777c9b2

Please sign in to comment.