From d1396377b516ab2f3d5b3c766723b9cac19cb387 Mon Sep 17 00:00:00 2001 From: Tony Ivanov Date: Sun, 18 Nov 2018 21:54:18 +0100 Subject: [PATCH] Fixed error propagation bug Made the call to callback unconditional, so that you don't have to wait forever until your callback gets invoked if anything goes wrong. ;) --- views/topics.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/views/topics.js b/views/topics.js index b23cab6..d185046 100644 --- a/views/topics.js +++ b/views/topics.js @@ -32,9 +32,7 @@ module.exports = function (lvl) { if (!channel) return this.ready(function () { lvl.get('channel!topic!' + channel, (err, topic) => { - if (!err && topic) { - cb(null, topic) - } + cb(err, topic) }) }) },