lib/packaging/config/validations.rb in packaging-0.108.2 vs lib/packaging/config/validations.rb in packaging-0.109.0
- old
+ new
@@ -2,10 +2,10 @@
class ConfigValidations
class << self
# As a validation, this one is kindof lame but is intended as a seed pattern for possibly
# more robust ones.
def not_empty?(value)
- value.to_s.empty? ? false : true
+ !value.to_s.empty?
end
end
end
end