From: Krzysztof Wilczynski Date: Sat, 30 Apr 2011 01:51:17 +0000 (+0100) Subject: Small re-factor. Remove not needed complexity. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=db7a27cf5b0cb5667b17e2cbc686bff4be3966b7;p=puppet-stdlib.git Small re-factor. Remove not needed complexity. Signed-off-by: Krzysztof Wilczynski --- 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