Skip to content
Browse files

Use 'or' instead of '||'

  • Loading branch information...
1 parent e362734 commit 2d393ec76d4d75de590a8eac89f7bef8728a8110 @Leonidas-from-XIV committed Mar 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/xml2js.test.coffee
View
2 test/xml2js.test.coffee
@@ -31,7 +31,7 @@ validator = (xpath, currentValue, newValue) ->
if xpath == '/sample/validatortest/numbertest'
return Number(newValue)
else if xpath in ['/sample/arraytest', '/sample/validatortest/emptyarray', '/sample/validatortest/oneitemarray']
- if not newValue || not ('item' of newValue)
+ if not newValue or not ('item' of newValue)
return {'item': []}
else if xpath in ['/sample/arraytest/item', '/sample/validatortest/emptyarray/item', '/sample/validatortest/oneitemarray/item']
if not currentValue

0 comments on commit 2d393ec

Please sign in to comment.
Something went wrong with that request. Please try again.