Commit 50afd34
fs: reduce unnecessary sync rimraf retries
rimraf should only retry if certain errors are encountered.
Additionally, there is no point sleeping if an error occurs
on the last try.
PR-URL: #30785
Fixes: #30580
Refs: #30569
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent 4e05bf0 commit 50afd34Copy full SHA for 50afd34
File tree
Expand file treeCollapse file tree
1 file changed
+10
-3
lines changedOpen diff view settings
Filter options
- lib/internal/fs
Expand file treeCollapse file tree
1 file changed
+10
-3
lines changedOpen diff view settings
Collapse file
+10-3Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
209 | 209 | |
210 | 210 | |
211 | 211 | |
212 | | - |
| 212 | + |
| 213 | + |
| 214 | + |
213 | 215 | |
214 | 216 | |
215 | | - |
216 | | - |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
217 | 223 | |
| 224 | + |
218 | 225 | |
219 | 226 | |
220 | 227 | |
|
0 commit comments