From 1122be76bb1bead51c553f4aaf08ef36469df486 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 15 Nov 2022 01:11:39 +0100 Subject: [PATCH] nginx: Fix indentation --- hosts/architect/nginx.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hosts/architect/nginx.nix b/hosts/architect/nginx.nix index 16a3542..ba5c4a9 100644 --- a/hosts/architect/nginx.nix +++ b/hosts/architect/nginx.nix @@ -49,18 +49,18 @@ resolver local=on ipv6=off; init_worker_by_lua_block { - function check_role (res, role) - if res.user.roles == nil then - return false - end - - for _,v in pairs(res.user.roles) do - if string.lower(v) == role then - return true + function check_role (res, role) + if res.user.roles == nil then + return false end - end - return false + for _,v in pairs(res.user.roles) do + if string.lower(v) == role then + return true + end + end + + return false end } '';