krakenjs / lusca

Application security for express apps.
Other
1.78k stars 123 forks source link

Warning that a promise was created in a handler but not returned from it #101

Open nstuyvesant opened 7 years ago

nstuyvesant commented 7 years ago

Using lusca 1.4.1 and node 7.7.4.

Got this warning message: Warning: a promise was created in a handler at Users/nates/Documents/Development/shy/node_modules/lusca/index.js:48:21 but was not returned from it, see http://goo.gl/rRqMUw

If you add a return null; after this line of code, the warning goes away.