summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:51:17 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:51:17 +0100
commitdb7a27cf5b0cb5667b17e2cbc686bff4be3966b7 (patch)
tree220339ae284b8e65c5068db1f2287c1492d52ab0
parent872c7f3c42557787662bdd42a3d6f69051d09a88 (diff)
downloadpuppet-stdlib-db7a27cf5b0cb5667b17e2cbc686bff4be3966b7.tar.gz
puppet-stdlib-db7a27cf5b0cb5667b17e2cbc686bff4be3966b7.tar.bz2
Small re-factor. Remove not needed complexity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-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