From 40dd1c7995b0c533049b9ea6e3aa0e21b4cf4996 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Sat, 29 Jun 2024 20:20:21 +0300 Subject: [PATCH] fix(graphql): remove uneeded non-null assertion operator --- plugins/node/opentelemetry-instrumentation-graphql/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-graphql/src/utils.ts b/plugins/node/opentelemetry-instrumentation-graphql/src/utils.ts index 06e6d6bbdf..c9ef7a935a 100644 --- a/plugins/node/opentelemetry-instrumentation-graphql/src/utils.ts +++ b/plugins/node/opentelemetry-instrumentation-graphql/src/utils.ts @@ -419,7 +419,7 @@ export function wrapFieldResolver( let field: any; let shouldEndSpan = false; - if (config.depth! >= 0 && config.depth! < depth) { + if (config.depth >= 0 && config.depth < depth) { field = getParentField(contextValue, path); } else { const newField = createFieldIfNotExists(