Small re-factor to fact function.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
This commit is contained in:
Krzysztof Wilczynski 2011-04-26 00:00:58 +01:00
parent 28254bef6b
commit f87fcecdfb

View file

@ -24,14 +24,10 @@ module Puppet::Parser::Functions
# and empty string is as closest to actual undef as you we can get # and empty string is as closest to actual undef as you we can get
# at this point in time ... # at this point in time ...
# #
result = (not result or result.empty?) ? '' : result result = (result and not result.empty?) ? result : ''
return result return result
end end
end end
# vim: set ts=2 sw=2 et : # vim: set ts=2 sw=2 et :
notice fact('interfaces')
notice fact('xyz')
notice fact('')