Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Proper multiline block

Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
grkek and Sija authored Jan 2, 2024
1 parent ba7cd7e commit 9827dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kemal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ module Kemal
end

private def self.setup_trap_signal
Process.on_interrupt {
Process.on_interrupt do
log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message
Kemal.stop
exit
}
end
end
end

0 comments on commit 9827dbf

Please sign in to comment.