Skip to content

Commit

Permalink
fix thread dump
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Dec 13, 2024
1 parent d5fcecc commit ed657e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/aptos-system-utils/src/thread_dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ async fn do_thread_dump(
body.push_str(&format!("Frame ip: {}\n", frame.ip()));
}
for symbol in frame.symbols() {
let name = if let Some(name) = symbol.name() {
name
} else {
"(unknown)"
};
let name = symbol.name().unwrap_or("(unknown)");
if location {
let location = if let Some(file) = symbol.file() {
if let Some(line) = symbol.line() {
Expand Down

0 comments on commit ed657e0

Please sign in to comment.