From 5089ccf4f7507c9beb64b1812b5562889d9a08c2 Mon Sep 17 00:00:00 2001 From: Leland Cope Date: Thu, 9 Jun 2016 14:48:15 -0700 Subject: [PATCH] Fixes a promise warning Fixes a promise warning because nothing is being returned. Actual message: `Warning: a promise was created in a handler but was not returned from it` --- lib/model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/model.js b/lib/model.js index 4e1a3161..95112472 100644 --- a/lib/model.js +++ b/lib/model.js @@ -220,6 +220,7 @@ Model.prototype.tableReady = function() { if (!self._pendingPromises.length) { self.emit('ready'); } + return null; }); };