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
1 changed files with 2 additions and 2 deletions

View File

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