Skip to content

Commit 01ffb12

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/1136-cargo-rustup-init-shim
2 parents 3c862aa + 3857349 commit 01ffb12

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

crates/codegraph-core/src/extractors/verilog.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ fn find_class_name(node: &Node, source: &[u8]) -> Option<String> {
148148
return Some(text.to_string());
149149
}
150150
for i in 0..node.child_count() {
151-
let child = node.child(i)?;
152-
if child.kind() == "class_identifier" {
153-
return Some(extract_identifier_text(&child, source));
151+
if let Some(child) = node.child(i) {
152+
if child.kind() == "class_identifier" {
153+
return Some(extract_identifier_text(&child, source));
154+
}
154155
}
155156
}
156157
None
@@ -161,12 +162,13 @@ fn find_class_name(node: &Node, source: &[u8]) -> Option<String> {
161162
/// `class_identifier > simple_identifier`.
162163
fn find_class_superclass(node: &Node, source: &[u8]) -> Option<String> {
163164
for i in 0..node.child_count() {
164-
let child = node.child(i)?;
165-
if child.kind() == "class_type" {
166-
if let Some(id) = find_child(&child, "class_identifier") {
167-
return Some(extract_identifier_text(&id, source));
165+
if let Some(child) = node.child(i) {
166+
if child.kind() == "class_type" {
167+
if let Some(id) = find_child(&child, "class_identifier") {
168+
return Some(extract_identifier_text(&id, source));
169+
}
170+
return Some(node_text(&child, source).trim().to_string());
168171
}
169-
return Some(node_text(&child, source).trim().to_string());
170172
}
171173
}
172174
None

src/domain/graph/builder/pipeline.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,6 @@ async function backfillNativeDroppedFiles(
10231023

10241024
if (missingAbs.length === 0) return;
10251025

1026-
if (missingAbs.length === 0) return;
1027-
10281026
// Classify drops so users see per-extension reasons instead of just a count
10291027
// (#1011). `unsupported-by-native` is a legitimate parser limit (no Rust
10301028
// extractor); `native-extractor-failure` indicates a real native bug since

0 commit comments

Comments
 (0)