Skip to content

Commit

Permalink
chore(instrumentation-graphql): use es6 syntax and strict comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Bartlomiej Obecny <bobecny@gmail.com>
  • Loading branch information
mentos1386 and obecny committed Nov 24, 2021
1 parent 80fd552 commit 16f650e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class GraphQLInstrumentation extends InstrumentationBase {
operation: graphqlTypes.DefinitionNode | undefined,
processedArgs: graphqlTypes.ExecutionArgs
): string | undefined {
if (operation && operation.kind == 'OperationDefinition') {
if operation?.kind === 'OperationDefinition') {
if (operation.name) {
return operation.name.value;
}
Expand Down

0 comments on commit 16f650e

Please sign in to comment.