Merge pull request #100456 from maralorn/boolToString

treewide: De-inline uses of lib.boolToString
This commit is contained in:
Andreas Rammhold
2020-10-25 00:45:11 +02:00
committed by GitHub
20 changed files with 30 additions and 28 deletions

View File

@@ -499,7 +499,7 @@ rec {
show = v:
if builtins.isString v then ''"${v}"''
else if builtins.isInt v then builtins.toString v
else if builtins.isBool v then if v then "true" else "false"
else if builtins.isBool v then boolToString v
else ''<${builtins.typeOf v}>'';
in
mkOptionType rec {