From 260b7b83b0ec396bb880038f4c93f977af0056c5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 16 Dec 2025 14:14:41 -0500 Subject: Fix hlint errors in Deploy modules - Systemd: use list comprehension instead of if-then-else - Manifest: use operator, replace case with maybe - Deployer: use newtype, use flip removeService - Caddy: use newtype for single-field types --- Omni/Deploy/Systemd.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Omni/Deploy/Systemd.hs') diff --git a/Omni/Deploy/Systemd.hs b/Omni/Deploy/Systemd.hs index ba85295..d7af1cd 100644 --- a/Omni/Deploy/Systemd.hs +++ b/Omni/Deploy/Systemd.hs @@ -47,9 +47,7 @@ generateUnit Service {..} = ++ requiresLine requiresLine = - if null (systemdRequires serviceSystemd) - then [] - else ["Requires=" <> Text.intercalate " " (systemdRequires serviceSystemd)] + ["Requires=" <> Text.intercalate " " (systemdRequires serviceSystemd) | not (null (systemdRequires serviceSystemd))] serviceSection = [ "", -- cgit v1.2.3