Permalink
Browse files

fix(decorators): no return

  • Loading branch information...
bas080
bas080 committed Jun 30, 2016
1 parent c7faf9e commit 2274878b70bb4d318756a56422d6937b64f9dc04
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/decorator/data.js
@@ -18,7 +18,10 @@ export function data(metaData) {
* @returns {OrmMetadata}
*/
return function(target, propertyName) {
typeof metaData !== 'object' && logger.error('data must be an object, it is a(n) ' + typeof metaData);
if (typeof metaData !== 'object') {
logger.error('data must be an object, ' + typeof metaData + ' given.');
}
OrmMetadata.forTarget(target.constructor).put('data', propertyName, metaData);
};
}

0 comments on commit 2274878

Please sign in to comment.