mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
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.
|
# Test environment doesn't need to have signal trap, built-in images, and logging.
|
||||||
unless config.env == "test"
|
unless config.env == "test"
|
||||||
Signal::INT.trap {
|
Signal::INT.trap do
|
||||||
log "Kemal is going to take a rest!" if config.shutdown_message
|
log "Kemal is going to take a rest!" if config.shutdown_message
|
||||||
Kemal.stop
|
Kemal.stop
|
||||||
exit
|
exit
|
||||||
}
|
end
|
||||||
|
|
||||||
# This route serves the built-in images for not_found and exceptions.
|
# This route serves the built-in images for not_found and exceptions.
|
||||||
get "/__kemal__/:image" do |env|
|
get "/__kemal__/:image" do |env|
|
||||||
|
|
Loading…
Reference in a new issue