From b79c6070854c68740fa35cbe24840aaeb48f252a Mon Sep 17 00:00:00 2001 From: fogine <7884288+fogine@users.noreply.github.com> Date: Tue, 3 Jul 2018 16:09:18 +0200 Subject: [PATCH] cleanup --- lib/instance.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/instance.js b/lib/instance.js index 0a865b9..7689415 100644 --- a/lib/instance.js +++ b/lib/instance.js @@ -957,9 +957,6 @@ Instance.prototype.touch = Promise.method(function(expiry, options) { * @return {Object} */ Instance.prototype.toJSON = function() { - //if (!this.Model._dataHasJsonStructure()) { - //throw new InstanceError("Can NOT convert document value of primitive type to JSON"); - //} const data = this._cloneData(); if (this.Model._dataHasObjectStructure()) {