Skip to content

Commit

Permalink
fix: mistake in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Jun 13, 2024
1 parent 2d160cb commit 0cf1b04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/oxc_linter/src/rules/eslint/no_unreachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Rule for NoUnreachable {

// In our first path we first check if each block is definitely unreachable, If it is then
// we set it as such, If we encounter an infinite loop we keep its end block since it can
// block other reachable blocks from ever getting executed.
// prevent other reachable blocks from ever getting executed.
let _: Control<()> = depth_first_search(graph, Some(root.cfg_id()), |event| match event {
DfsEvent::Finish(node, _) => {
let bb = cfg.basic_block(node);
Expand Down Expand Up @@ -140,7 +140,6 @@ impl Rule for NoUnreachable {
}

if unreachables[node.cfg_id().index()] {
// if cfg.basic_block(node.cfg_id()).unreachable {
ctx.diagnostic(no_unreachable_diagnostic(node.kind().span()));
}
}
Expand Down

0 comments on commit 0cf1b04

Please sign in to comment.