From 4e4c6b53e05c88c018131feede561eac7c5c5988 Mon Sep 17 00:00:00 2001 From: Fishy78 <34889182+Fishy78@users.noreply.github.com> Date: Wed, 14 Jul 2021 14:31:08 +0200 Subject: [PATCH] Bug: Boolean $false leads to empty value --- PSYaml/Public/ConvertTo-Yaml.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSYaml/Public/ConvertTo-Yaml.ps1 b/PSYaml/Public/ConvertTo-Yaml.ps1 index e1fdbc7..53b8943 100644 --- a/PSYaml/Public/ConvertTo-Yaml.ps1 +++ b/PSYaml/Public/ConvertTo-Yaml.ps1 @@ -35,7 +35,7 @@ function ConvertTo-Yaml PROCESS { # if it is null return null - If ( !($inputObject) ) + If ( $inputObject -eq $null ) { return ''