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