Simplify optional parameters
This commit is contained in:
parent
256583e295
commit
3507429547
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue