Simplify optional parameters

This commit is contained in:
Sander van der Burg 2021-03-13 23:44:00 +01:00 committed by Sander van der Burg
parent 256583e295
commit 3507429547
1 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ in
providesContainer = containerName; providesContainer = containerName;
} // lib.optionalAttrs (type != null) { } // lib.optionalAttrs (type != null) {
inherit type; inherit type;
} // (if mongoDumpArgs == null then {} else { } // lib.optionalAttrs (mongoDumpArgs != null) {
inherit mongoDumpArgs; inherit mongoDumpArgs;
}) // (if mongoRestoreArgs == null then {} else { } // lib.optionalAttrs (mongoRestoreArgs != null) {
inherit mongoRestoreArgs; inherit mongoRestoreArgs;
}) // properties } // properties