Don't use single line block syntax

This commit is contained in:
sdogruyol 2017-06-23 12:18:40 +03:00
parent a177e30464
commit b194b0b03c

View file

@ -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|