diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-29 23:30:32 +0100 |
---|---|---|
committer | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-29 23:30:32 +0100 |
commit | 0ff8b00a64426acf96d0659d1cbc1f67bba842f4 (patch) | |
tree | 34c846c222a34df5059e618be48a3585d9a78458 /join_with_prefix.rb | |
parent | 726746649e38615b69aa372ec978b2ffa39b89d5 (diff) | |
download | puppet-stdlib-0ff8b00a64426acf96d0659d1cbc1f67bba842f4.tar.gz puppet-stdlib-0ff8b00a64426acf96d0659d1cbc1f67bba842f4.tar.bz2 |
Small re-factor. Changed if not to unless for code clarity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Diffstat (limited to 'join_with_prefix.rb')
-rw-r--r-- | join_with_prefix.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/join_with_prefix.rb b/join_with_prefix.rb index c0a2e4e..8bf96d9 100644 --- a/join_with_prefix.rb +++ b/join_with_prefix.rb @@ -13,8 +13,8 @@ module Puppet::Parser::Functions array = arguments[0] - if not array.is_a?(Array) - raise(Puppet::ParseError, 'join_with_prefix(): Requires an ' + + unless array.is_a?(Array) + raise(Puppet::ParseError, 'join_with_prefix(): Requires ' + 'array to work with') end |