Skip to content

Commit

Permalink
Update crates/symbolicator-js/src/symbolication.rs
Browse files Browse the repository at this point in the history
Co-authored-by: David Herberth <[email protected]>
  • Loading branch information
samuelmaddock and Dav1dde authored Jan 9, 2025
1 parent 94c1451 commit 76e9a06
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/symbolicator-js/src/symbolication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,9 @@ async fn symbolicate_js_frame(
// and we want to avoid scraping a bunch of html files in that case.
let line = match raw_frame.lineno {
Some(lineno) if lineno > 0 => lineno,
Some(lineno) => {
lineno => {
return Err(JsModuleErrorKind::InvalidLocation {
line: lineno,
col: raw_frame.colno,
});
}
None => {
return Err(JsModuleErrorKind::InvalidLocation {
line: 0,
line: lineno.unwrap_or(0),
col: raw_frame.colno,
});
}
Expand Down

0 comments on commit 76e9a06

Please sign in to comment.