summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fact.rb b/fact.rb
index 00aa572..27b7bb2 100644
--- a/fact.rb
+++ b/fact.rb
@@ -27,7 +27,7 @@ module Puppet::Parser::Functions
# and empty string is as closest to actual undef as you we can get
# at this point in time ...
#
- result = (result and not result.empty?) ? result : ''
+ result = result.empty? ? '' : result
return result
end