Skip to content

Commit 6e7cb05

Browse files
crysmagsclaude
andcommitted
chore(graphql): fix lint errors in resolve.js
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5484e87 commit 6e7cb05

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/datadog-plugin-graphql/src/resolve.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ class GraphQLResolvePlugin extends TracingPlugin {
155155

156156
fieldDef.resolve = function (source, args, contextValue, resolveInfo) {
157157
fieldDef.resolve = originalResolve
158-
iastResolveCh.publish({ rootCtx: capturedRootCtx, args, info: capturedInfo, path: capturedPath, pathString: capturedPathString })
158+
iastResolveCh.publish({
159+
rootCtx: capturedRootCtx, args, info: capturedInfo, path: capturedPath, pathString: capturedPathString,
160+
})
159161
return originalResolve.call(this, source, args, contextValue, resolveInfo)
160162
}
161163
}
@@ -250,7 +252,7 @@ function getFieldDef (schema, parentType, fieldNode) {
250252
const fieldName = fieldNode.name.value
251253

252254
if (fieldName === '__schema' || fieldName === '__type' || fieldName === '__typename') {
253-
return undefined
255+
return
254256
}
255257

256258
const fields = parentType.getFields?.()
@@ -293,7 +295,7 @@ function withCollapse (responsePathAsArray) {
293295
}
294296

295297
function getResolverArgs (fieldDef, fieldNode, variableValues) {
296-
if (!fieldNode.arguments || fieldNode.arguments.length === 0) return undefined
298+
if (!fieldNode.arguments || fieldNode.arguments.length === 0) return
297299

298300
const args = {}
299301
for (const arg of fieldNode.arguments) {
@@ -367,7 +369,6 @@ function getParentField (parentCtx, path, collapse) {
367369
function getErrorsArray (exeContext) {
368370
if (exeContext.errors) return exeContext.errors
369371
if (exeContext.collectedErrors?._errors) return exeContext.collectedErrors._errors
370-
return undefined
371372
}
372373

373374
function getErrorCount (exeContext) {

0 commit comments

Comments
 (0)