Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

respect coding style

  • Loading branch information...
commit 0d3ad0cb8a217e46bcc42afa0ea9be949ecb1d77 1 parent d0d9a21
@Filirom1 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/
2  src/
@@ -74,7 +74,7 @@ validateModel = (model, id, models) ->
# checks that model has an id
if isnt id
throw new Error("model #{id} not declared with the same id")
- unless _.isObject( and !_.isEmpty( || model.additionalProperties || model.items
+ unless !_.isEmpty( or !_.isEmpty(model.additionalProperties) or !_.isEmpty(model.items)
throw new Error("model #{id} does not declares properties")
if models[id]?
throw new Error("model #{id} has already been defined")

0 comments on commit 0d3ad0c

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