From 3841ed1331b421c75e518d4690b579ff2298970f Mon Sep 17 00:00:00 2001 From: Adam Washington Date: Tue, 18 Sep 2018 13:52:08 +0100 Subject: [PATCH] Remove unneeded null check Also remove extra parens. --- modules/programs/zathura.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/zathura.nix b/modules/programs/zathura.nix index 065a58c3..8911a5cb 100644 --- a/modules/programs/zathura.nix +++ b/modules/programs/zathura.nix @@ -49,8 +49,8 @@ in home.packages = [ pkgs.zathura ]; xdg.configFile."zathura/zathurarc".text = concatStringsSep "\n" ([] - ++ (optional (cfg.extraConfig != "") cfg.extraConfig) - ++ (optionals (cfg.options != null) (mapAttrsToList formatLine cfg.options)) + ++ optional (cfg.extraConfig != "") cfg.extraConfig + ++ mapAttrsToList formatLine cfg.options ) + "\n"; }; }