From 23a34d90540b9867be27455eeb42ed9af4878369 Mon Sep 17 00:00:00 2001 From: Dan Sudol Date: Thu, 11 Feb 2016 19:40:00 -0500 Subject: [PATCH] minor touch up --- addon/model-definition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/model-definition.js b/addon/model-definition.js index 33837ed4..20bef464 100644 --- a/addon/model-definition.js +++ b/addon/model-definition.js @@ -31,7 +31,7 @@ var ModelDefinition = function (model, config) { var getRelationship = function (field) { var modelClass = FactoryGuy.get('store').modelFor(modelName); var relationship = Ember.get(modelClass, 'relationshipsByName').get(field); - return !!relationship ? relationship : null; + return relationship || null; }; /** @param {String} name model name like 'user' or named type like 'admin'