Permalink
Browse files

respect coding style

  • Loading branch information...
1 parent d0d9a21 commit 0d3ad0cb8a217e46bcc42afa0ea9be949ecb1d77 @Filirom1 committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/generator.coffee
View
2 src/generator.coffee
@@ -74,7 +74,7 @@ validateModel = (model, id, models) ->
# checks that model has an id
if model.id isnt id
throw new Error("model #{id} not declared with the same id")
- unless _.isObject(model.properties) and !_.isEmpty(model.properties) || model.additionalProperties || model.items
+ unless !_.isEmpty(model.properties) 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.