summaryrefslogtreecommitdiff
path: root/prefix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'prefix.rb')
-rw-r--r--prefix.rb4
1 files changed, 2 insertions, 2 deletions
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]