Remove unneeded null check

Also remove extra parens.
This commit is contained in:
Adam Washington 2018-09-18 13:52:08 +01:00
parent de2b524e64
commit 3841ed1331
No known key found for this signature in database
GPG key ID: 0D2B93AB0C87BAF1

View file

@ -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";
};
}