From 5d71c765544b2030e102ba523480deed8430e0aa Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Thu, 13 Oct 2016 22:09:06 +0300 Subject: [PATCH] Don't nest lines with unless. Fixes #225 --- src/kemal/cli.cr | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/kemal/cli.cr b/src/kemal/cli.cr index 41774ce..4795e3e 100644 --- a/src/kemal/cli.cr +++ b/src/kemal/cli.cr @@ -41,8 +41,14 @@ module Kemal def configure_ssl {% if !flag?(:without_openssl) %} if @ssl_enabled - puts "SSL Key Not Found"; exit unless @key_file - puts "SSL Certificate Not Found"; exit unless @cert_file + unless @key_file + puts "SSL Key Not Found" + exit + end + unless @cert_file + puts "SSL Certificate Not Found" + exit + end ssl = Kemal::Middleware::SSL.new ssl.set_key_file @key_file.not_nil! ssl.set_cert_file @cert_file.not_nil!