diff options
Diffstat (limited to 'values_at.rb')
-rw-r--r-- | values_at.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/values_at.rb b/values_at.rb index cd7205d..331af6a 100644 --- a/values_at.rb +++ b/values_at.rb @@ -15,9 +15,8 @@ module Puppet::Parser::Functions array = arguments.shift - if not array.is_a?(Array) - raise(Puppet::ParseError, 'values_at(): Requires an array ' + - 'to work with') + unless array.is_a?(Array) + raise(Puppet::ParseError, 'values_at(): Requires array to work with') end indices = *arguments # Get them all ... Pokemon ... |