Skip to content

Commit

Permalink
remove api check since api is now optional
Browse files Browse the repository at this point in the history
  • Loading branch information
petercrona committed Apr 30, 2017
1 parent cda69c9 commit 2b56bd1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ const isValidLogger = (logger) => logger && typeof logger.error === 'function';
const getEntityNames = (entityConfigs) => Object.keys(entityConfigs);

const checkApiDeclaration = (logger, entityConfigs, entityName, entity) => {
if (typeof entity.api !== 'object') {
warn(logger, `No api definition found for entity ${entityName}`);
return;
}

const warnApi = (msg, ...args) => warn(
logger,
`Invalid api config. ${msg}`,
Expand Down

0 comments on commit 2b56bd1

Please sign in to comment.