From efb933f10206fbe0245b4d00f27ce830d3300e7b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 10 Mar 2014 17:32:50 -0400 Subject: [PATCH] backwards-compatibility for plugins if they return a callback --- src/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins.js b/src/plugins.js index b10e762ca5..8e5a773fbc 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -320,7 +320,7 @@ var fs = require('fs'), next(arguments[0], Array.prototype.slice.call(arguments, 1)); })); - if (value !== undefined) { + if (value !== undefined && value !== callback) { winston.warn('[plugins/' + hookObj.id + '] "callbacked" deprecated as of 0.4x. Use asynchronous method instead for hook: ' + hook); next(null, [value]); }