]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Small re-factor. Remove not needed complexity.
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Sat, 30 Apr 2011 01:51:17 +0000 (02:51 +0100)
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Sat, 30 Apr 2011 01:51:17 +0000 (02:51 +0100)
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
fact.rb

diff --git a/fact.rb b/fact.rb
index 00aa572bb5843c024c80787bbfa666b5254a8b86..27b7bb2afe750c129f446596bf09ec71f0651a02 100644 (file)
--- 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