clean-code-javascript
clean-code-javascript copied to clipboard
The code example of <Don't ignore rejected promises> may be wrong.
The Good code example of Don't ignore rejected promises may be wrong. It is the same as the Good code example of Don't ignore caught errors .
Yes, they are similar, almost identical in their structure. But this is okay, because the purpose is to reinforce the principle: whether dealing with Promises or synchronous code, you should never swallow errors silently. so i guess no change is needed, but incase its needed I can do that.