From db7a27cf5b0cb5667b17e2cbc686bff4be3966b7 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Sat, 30 Apr 2011 02:51:17 +0100 Subject: Small re-factor. Remove not needed complexity. Signed-off-by: Krzysztof Wilczynski --- fact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3