From 156e511d4aaa3d00e1a10e93f8dc1d161a8ee916 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Tue, 9 Jun 2020 14:54:23 +0000 Subject: [PATCH] Fix failed build (omitted parentheses) --- src/handlers/auth_handler.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/auth_handler.cr b/src/handlers/auth_handler.cr index cb139e5..f66c786 100644 --- a/src/handlers/auth_handler.cr +++ b/src/handlers/auth_handler.cr @@ -63,8 +63,8 @@ class AuthHandler < Kemal::Handler end def handle_auth(env) - if request_path_startswith env, ["/login", "/logout"] || - requesting_static_file env + if request_path_startswith(env, ["/login", "/logout"]) || + requesting_static_file env return call_next(env) end