2 ms·
Yes it's not very shinning there. I would also throw the error instead of printing the error to the console and returning undefined.
by speedgoose 5y ago
Yes it's not very shinning there. I would also throw the error instead of printing the error to the console and returning undefined.
- ponyous 5y agoYou are in a callback there. Goodbye your error!
- speedgoose 5y agoOh right. I once made a layer on top of the redis client to use promises because callbacks are a pain to deal with.