Use ?. where it represents the intended semantics (#11512)
This commit is contained in:
@@ -95,7 +95,7 @@ function applyMethodDecorators(path, state) {
|
||||
}
|
||||
|
||||
function hasMethodDecorators(body) {
|
||||
return body.some(node => node.decorators && node.decorators.length);
|
||||
return body.some(node => node.decorators?.length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user