Don't use single line block syntax
This commit is contained in:
parent
a177e30464
commit
b194b0b03c
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue