Skip to content

Commit

Permalink
Don't use single line block syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogruyol committed Jun 23, 2017
1 parent a177e30 commit b194b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kemal.cr
Expand Up @@ -41,11 +41,11 @@ module Kemal

# Test environment doesn't need to have signal trap, built-in images, and logging.
unless config.env == "test"
Signal::INT.trap {
Signal::INT.trap do
log "Kemal is going to take a rest!" if config.shutdown_message
Kemal.stop
exit
}
end

# This route serves the built-in images for not_found and exceptions.
get "/__kemal__/:image" do |env|
Expand Down

0 comments on commit b194b0b

Please sign in to comment.