From 0ff8b00a64426acf96d0659d1cbc1f67bba842f4 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Fri, 29 Apr 2011 23:30:32 +0100 Subject: Small re-factor. Changed if not to unless for code clarity. Signed-off-by: Krzysztof Wilczynski --- prefix.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prefix.rb') diff --git a/prefix.rb b/prefix.rb index bf3690d..572ff4e 100644 --- a/prefix.rb +++ b/prefix.rb @@ -13,8 +13,8 @@ module Puppet::Parser::Functions array = arguments[0] - if not array.is_a?(Array) - raise(Puppet::ParseError, 'prefix(): Requires an array to work with') + unless array.is_a?(Array) + raise(Puppet::ParseError, 'prefix(): Requires array to work with') end prefix = arguments[1] if arguments[1] -- cgit v1.2.3