From c905f5aae5b340f2eed7cbb4b028de41661526b0 Mon Sep 17 00:00:00 2001 From: Romy <35330373+romayalon@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:49:22 +0300 Subject: [PATCH] NC | should retry add parentheses Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com> --- src/util/native_fs_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/native_fs_utils.js b/src/util/native_fs_utils.js index b0c57d11ca..e132aa0872 100644 --- a/src/util/native_fs_utils.js +++ b/src/util/native_fs_utils.js @@ -271,7 +271,7 @@ function should_retry_link_unlink(is_gpfs, err) { const should_retry_general = ['ENOENT', 'EEXIST'].includes(err.code); const should_retry_gpfs = [gpfs_link_unlink_retry_err, gpfs_unlink_retry_catch].includes(err.code); const should_retry_posix = [posix_link_retry_err, posix_unlink_retry_err].includes(err.message); - return should_retry_general || is_gpfs ? should_retry_gpfs : should_retry_posix; + return should_retry_general || (is_gpfs ? should_retry_gpfs : should_retry_posix); } ////////////////////////