Skip to content

Commit ebbfc52

Browse files
authored
Merge pull request #8403 from romayalon/romy-threaded-multi-object-delete
NSFS | Add parentheses to should retry
2 parents b85e291 + c905f5a commit ebbfc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/native_fs_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function should_retry_link_unlink(is_gpfs, err) {
271271
const should_retry_general = ['ENOENT', 'EEXIST'].includes(err.code);
272272
const should_retry_gpfs = [gpfs_link_unlink_retry_err, gpfs_unlink_retry_catch].includes(err.code);
273273
const should_retry_posix = [posix_link_retry_err, posix_unlink_retry_err].includes(err.message);
274-
return should_retry_general || is_gpfs ? should_retry_gpfs : should_retry_posix;
274+
return should_retry_general || (is_gpfs ? should_retry_gpfs : should_retry_posix);
275275
}
276276

277277
////////////////////////

0 commit comments

Comments
 (0)