Skip to content

Commit

Permalink
fix(graphql): remove uneeded non-null assertion operator
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir committed Jun 29, 2024
1 parent 077fda6 commit 40dd1c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export function wrapFieldResolver<TSource = any, TContext = any, TArgs = any>(

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(
Expand Down

0 comments on commit 40dd1c7

Please sign in to comment.