diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-30 02:49:15 +0100 |
---|---|---|
committer | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-30 02:49:15 +0100 |
commit | 9d0e2447712dd3c01b59c723251eb8c02933e501 (patch) | |
tree | a27b063404f402b8da8fd186100420516102e922 | |
parent | 3c4c1c7c2010d8df0e5e43306cc7b407705d4053 (diff) |
Moved to unless from if not to improve code clarity. Changed
wording of few error messages.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r-- | member.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,14 +15,14 @@ module Puppet::Parser::Functions array = arguments[0] - if not array.is_a?(Array) - raise(Puppet::ParseError, 'member(): Requires an array to work with') + unless array.is_a?(Array) + raise(Puppet::ParseError, 'member(): Requires array to work with') end item = arguments[1] raise(Puppet::ParseError, 'member(): You must provide item ' + - 'to search for within given array') if item.empty? + 'to search for within array given') if item.empty? result = array.include?(item) |