Use ?. where it represents the intended semantics (#11512)
This commit is contained in:
@@ -59,7 +59,7 @@ export default declare(api => {
|
||||
const attributes = path.container.openingElement.attributes;
|
||||
for (let i = 0; i < attributes.length; i++) {
|
||||
const name = attributes[i].name;
|
||||
if (name && name.name === TRACE_ID) {
|
||||
if (name?.name === TRACE_ID) {
|
||||
// The __source attribute already exists
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user