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 --- lstrip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrip.rb') diff --git a/lstrip.rb b/lstrip.rb index 7f205a8..241b683 100644 --- a/lstrip.rb +++ b/lstrip.rb @@ -13,8 +13,8 @@ module Puppet::Parser::Functions value = arguments[0] klass = value.class - if not [Array, String].include?(klass) - raise(Puppet::ParseError, 'lstrip(): Requires either an ' + + unless [Array, String].include?(klass) + raise(Puppet::ParseError, 'lstrip(): Requires either ' + 'array or string to work with') end -- cgit v1.2.3