From d2a306dab9d7b61855da666ab0dbd201279fc3a7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 8 Sep 2024 13:53:20 +0200 Subject: [PATCH] refactor: Skip returning volume if driver type is cifs or nfs --- bootstrap/helpers/shared.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 0041825b9..75c7a101c 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -3246,10 +3246,10 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int if ($topLevel->get('volumes')->has($source->value())) { $temp = $topLevel->get('volumes')->get($source->value()); if (data_get($temp, 'driver_opts.type') === 'cifs') { - return $volume; + continue; } if (data_get($temp, 'driver_opts.type') === 'nfs') { - return $volume; + continue; } } $slugWithoutUuid = Str::slug($source, '-');