Skip to content

Commit 151e8c1

Browse files
committed
chore: Return an undefined value explicitly
1 parent 3896500 commit 151e8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/support-resolvable-directives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function chainDirectiveResolvers (schema, directives, originalResolve, source, a
4242
.map(directive => getDirectiveInfo(directive, schema, variableValues))
4343
.filter(({ resolve }) => resolve)
4444
if (!directiveInfos.length) {
45-
return
45+
return undefined
4646
}
4747
const firstResolver = wrapResolve(originalResolve, source, args, context, info)
4848
return directiveInfos.reduce((nextResolver, { args, resolve }) =>

0 commit comments

Comments
 (0)