summaryrefslogtreecommitdiff
path: root/rstrip.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rstrip.rb')
-rw-r--r--rstrip.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rstrip.rb b/rstrip.rb
index b198488..56849d3 100644
--- a/rstrip.rb
+++ b/rstrip.rb
@@ -13,8 +13,8 @@ module Puppet::Parser::Functions
value = arguments[0]
klass = value.class
- if not [Array, String].include?(klass)
- raise(Puppet::ParseError, 'rstrip(): Requires either an ' +
+ unless [Array, String].include?(klass)
+ raise(Puppet::ParseError, 'rstrip(): Requires either ' +
'array or string to work with')
end