clean-code-javascript icon indicating copy to clipboard operation
clean-code-javascript copied to clipboard

The code example of <Don't ignore rejected promises> may be wrong.

Open ljtang2009 opened this issue 2 years ago • 1 comments

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 .

ljtang2009 avatar Feb 23 '23 02:02 ljtang2009

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.

khushipy avatar Jun 20 '25 06:06 khushipy