From 6a22fdd6453d99cb6c857b55508652e096279c34 Mon Sep 17 00:00:00 2001 From: Aleksandr Pasechnik Date: Mon, 15 Jul 2024 15:02:34 -0400 Subject: [PATCH] [SVLS-4918] make the DD_NODE_TRACER_VERSION_* variables local since we do not actually need to expose them --- datadog_wrapper | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/datadog_wrapper b/datadog_wrapper index 244656b..b33575b 100644 --- a/datadog_wrapper +++ b/datadog_wrapper @@ -159,12 +159,8 @@ setUpNodeEnv() { echo "Setting up Datadog tracing for Node" echo "Installing Node tracer" - if [ -z "${DD_NODE_TRACER_VERSION_4}" ]; then - DD_NODE_TRACER_VERSION_4=4.38.1 - fi - if [ -z "${DD_NODE_TRACER_VERSION_5}" ]; then - DD_NODE_TRACER_VERSION_5=5.18.0 - fi + local DD_NODE_TRACER_VERSION_4=4.38.1 + local DD_NODE_TRACER_VERSION_5=5.18.0 if [[ "$NODE_RUNTIME_VERSION" =~ ^v16.* ]]; then yarn add "dd-trace@$DD_NODE_TRACER_VERSION_4" || return