Skip to content

Commit

Permalink
respect coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Filirom1 committed Mar 28, 2013
1 parent d0d9a21 commit 0d3ad0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator.coffee
Expand Up @@ -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")
Expand Down

0 comments on commit 0d3ad0c

Please sign in to comment.