Merge pull request #24830 from mayflower/refactor/boolToString

treewide: use boolToString function
This commit is contained in:
Daniel Peebles
2017-04-13 09:45:31 -04:00
committed by GitHub
40 changed files with 111 additions and 118 deletions

View File

@@ -30,6 +30,11 @@ rec {
/* boolean and */
and = x: y: x && y;
/* Convert a boolean to a string.
Note that toString on a bool returns "1" and "".
*/
boolToString = b: if b then "true" else "false";
/* Merge two attribute sets shallowly, right side trumps left
Example: