mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Don't nest lines with unless. Fixes #225
This commit is contained in:
parent
5ce40d0971
commit
5d71c76554
1 changed files with 8 additions and 2 deletions
|
@ -41,8 +41,14 @@ module Kemal
|
||||||
def configure_ssl
|
def configure_ssl
|
||||||
{% if !flag?(:without_openssl) %}
|
{% if !flag?(:without_openssl) %}
|
||||||
if @ssl_enabled
|
if @ssl_enabled
|
||||||
puts "SSL Key Not Found"; exit unless @key_file
|
unless @key_file
|
||||||
puts "SSL Certificate Not Found"; exit unless @cert_file
|
puts "SSL Key Not Found"
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
unless @cert_file
|
||||||
|
puts "SSL Certificate Not Found"
|
||||||
|
exit
|
||||||
|
end
|
||||||
ssl = Kemal::Middleware::SSL.new
|
ssl = Kemal::Middleware::SSL.new
|
||||||
ssl.set_key_file @key_file.not_nil!
|
ssl.set_key_file @key_file.not_nil!
|
||||||
ssl.set_cert_file @cert_file.not_nil!
|
ssl.set_cert_file @cert_file.not_nil!
|
||||||
|
|
Loading…
Reference in a new issue