mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Simplifications based on PR feedback
This commit is contained in:
@@ -104,7 +104,7 @@ pub fn convert_nodes(nodes: &Vec<NodeInfo>) -> NodeTypeMap {
|
||||
|
||||
// First, find all the token kinds
|
||||
for node in nodes {
|
||||
if let None = &node.subtypes {
|
||||
if node.subtypes.is_none() {
|
||||
if node.fields.as_ref().map_or(0, |x| x.len()) == 0 && node.children.is_none() {
|
||||
let type_name = TypeName {
|
||||
kind: node.kind.clone(),
|
||||
|
||||
Reference in New Issue
Block a user